Dev stack: boost up
Start every service your project needs, in one terminal.
stack:
db:
run: docker compose up postgres
port: 5432
api:
run: npm run dev
cwd: api
env: {PORT: "4000"}
wait_for: db
web:
run: npm run dev
cwd: web
wait_for: api
| Option | What it does |
|---|---|
run |
The command (or a map per OS, like aliases) |
cwd |
Folder, relative to the project root |
env |
Environment variables |
port |
boost waits until this port is open before starting the services that wait for this one |
wait_for |
One service or a list of services that must start first |
Commands
boost up # start everything; Ctrl+C stops everything
boost up api # start api and what it waits for
boost up -d # start in the background
boost ps # what is running, its port and how long
boost logs api # output of one service
boost logs api -f # keep following it
boost stop api # stop one service
boost stop # stop all
In the foreground, every line is labeled with the service name and color. Output is also saved, so boost logs works for foreground and background runs.
Each project keeps its own list of running services, so two projects don't interfere.