Justfile as a Task Runner
When I’m working on a project with a separate frontend and backend, I need to start both dev servers every time. Open two terminals, cd into each directory, run npm run dev in both. It’s not hard, but it gets old.
just is a simple command runner that lets me put all of that into one file. I drop a justfile in the project root:
# Start both frontend and backend
dev:
cd frontend && npm run dev &
cd backend && npm run dev &
wait
# Start only frontend
dev-frontend:
cd frontend && npm run dev
# Start only backend
dev-backend:
cd backend && npm run dev
Now I just run:
just dev
Both servers start in parallel. One command, one terminal.
Install with brew install just and drop a justfile in your project root.
Related
Word Embeddings, Cross-Lingual Alignment, and Building CLEU
How word embeddings work, what cross-lingual alignment means, and why I built a tool to explore them with FAISS.
Git Tags, Drone CI, and Watchtower — A Simple Deployment Pipeline
How I moved from Jenkins to Drone CI with git tags and Watchtower for a lightweight, reliable deployment pipeline.
Migrating from Nginx to Caddy — Why I Switched and Never Looked Back
How Caddy replaced Nginx as my reverse proxy — automatic HTTPS, wildcard domains, and a config file that actually makes sense.