Makefile Commands
Run make help for the same list in your terminal. Docker targets use docker compose (v2) and the
finflow-* container names.
Setup
make setup- Initial setup: create env files and generate secretsmake install- Install dependencies for local development
Quick actions
make quick-dev- Zero-config startup: dev containers + demo user (npm run setup:dev:docker)make quick-start- Legacy alias forquick-devmake reset- Runclean,setup, andstartmake update- Runnpm updatein backend and frontend
Docker operations
make start- Start all services in production mode; builds the images locally (docker compose up -d --build)make dev- Start all services in development mode with hot reloadmake stop- Stop all servicesmake restart- Restart all servicesmake clean- Stop services and remove volumes, including the devnode_modulesvolumesmake clean-build-cache- Remove unused Docker build cache
To run the published images instead of building them, use docker compose pull && docker compose up -d and pin a
release with LUMIO_IMAGE_TAG.
Logs
make logs- Logs from all servicesmake logs-backend,make logs-frontend,make logs-db,make logs-redis- Logs from one service
Development (local)
make backend-dev- Start the backend locally (npm run start:dev)make frontend-dev- Start the frontend locally (npm run dev)make db-start- Start only PostgreSQL and Redis (needs a root.env; runmake setupfirst)
Database
These run inside the running finflow-backend container. The production backend image ships without npm, so use
migrate* against the dev stack; in production, migrations run automatically on start.
make migrate- Run database migrationsmake migrate-revert- Revert the last migrationmake migrate-generate name=MigrationName- Generate a new migrationmake db-shell- Open a PostgreSQL shellmake db-backup- Dump the database tobackup_<timestamp>.sqlmake db-restore file=backup.sql- Restore a dump
User management
make admin email=admin@example.com password=admin123 name="Admin"- Create an admin usermake seed-demo- Create the demo user (demo@lumio.dev/demo123)
Testing
make test- Backend unit tests (Jest) and frontend tests (Vitest)make test-backend- Backend unit testsmake test-frontend- Frontend testsmake test-watch- Backend tests in watch modemake test-cov- Backend tests with coveragemake test-e2e- Backend end-to-end tests (need PostgreSQL and Redis)
Code quality
make lint- Runs each app'slintscript, which only checks (backend: Biome; frontend: Biome + ESLint). To auto-fix, runnpm --prefix backend run lint:fixandnpm --prefix frontend run lint:fix.make lint-check- Check linting without fixingmake format- Format code with Biomemake type-check- Backend build plus frontendtype-check
Build
make build- Build backend and frontend for productionmake build-docker- Build Docker images
Utilities
make shell-backend,make shell-frontend,make shell-db- Open a shell in a containermake health- Check the backend (/api/v1/health), frontend, PostgreSQL, and Redismake ps- Show running containersmake stats- Show container resource usagemake docs- Open the Swagger docs athttp://localhost:3001/api/docs
For full details, inspect Makefile in the repository root.