localhost show the boxes you are looking at. tesser dev
starts it for you; tesser daemon install keeps it running after a reboot.
Every box has an address
tesser dev prints. Browsers send *.localhost to your own
machine with no setup, so two tabs on two box addresses show two branches
side by side. Every port the box declares works, and so do the ports of the
services it depends on, so box-<id>.localhost:5000 is the API that box
talks to.
The same addresses work from code on your boxes, so one box can reach
another’s port by its address. On a box, <service>.localhost:<port> also
names whatever box is currently the org’s shared instance of that service.
Your laptop serves the boxes you started, boxes shared with you, and the
org’s shared instances. Opening a sleeping shared instance wakes it, and any
other sleeping box shows a Wake button.
Bare localhost is the boxes you focused
localhost:3000 shows whichever box you focused last for that port.
Focusing a box also focuses everything it depends on, so a frontend and its
backend move together. Focus a different backend and only the backend ports
move.
Because the address never changes, an OAuth callback registered for
localhost:3000 keeps working as you switch branches. Cookies stay with the
address too, so a branch with its own database may ask you to sign in again.
An app on your laptop
To run a dev server on your laptop next to your boxes, start it through tesserd:local-dash.localhost:3000, and never takes port
3000 from your boxes. tesser use local-dash puts it on bare
localhost:3000, and tesser use <box_id> puts a box back.
The panel
Pages tesserd serves have a small square in the bottom-right corner (⌘⇧U). It opens a panel that lists the branches serving that port. Pick one
to focus it.