Getting started
Run the backend and the web console on your machine.
Run the stack
The backend, Postgres and Redis run from Docker Compose, driven by the justfile.
just doctor # checks tooling, seeds .env and the dev secrets
just up # starts the development stack and waits until it is healthyThe first build clones Frappe, ERPNext and this app over SSH, so ssh-add -l must list a key your Git host accepts.
Run the frontend
yarn install
yarn workspace @cbs/web-console devyarn install also turns on the Git hooks: pre-commit formats and lints the staged files, and the commit message must follow Conventional Commits.
Check your work
| What | Command |
|---|---|
| Frontend tests | yarn vp test |
| Format, lint, types | yarn run check (auto-fix: yarn vp check --fix) |
| Types, one package | yarn --cwd <package> check:types |
| Backend tests | bench --site localhost run-tests --module <module> |