Skip to Content
OPENCBSDevelopers

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 healthy

The 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 dev

yarn 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

WhatCommand
Frontend testsyarn vp test
Format, lint, typesyarn run check (auto-fix: yarn vp check --fix)
Types, one packageyarn --cwd <package> check:types
Backend testsbench --site localhost run-tests --module <module>

On this page