Project development workflow¶
Cloning the repository¶
git clone https://github.com/smkent/bdbox
cd bdbox
Run mise install in new repository clones to:
- Enable git hooks
- Install UI dependencies via
npm(To update, runmise installagain ornpm install) - Install Playwright UI testing browser packages
(To update, run
mise installagain orplaywright install) - Build static UI assets
(To build again, run
mise run staticormise run dev)
mise install
Development tools¶
mise run dev: Watch and automatically rebuild static UI assets on changesmise run lint: Run formatters and static checksmise run static: Build static UI assetsmise run test: Run backend testsmise run webtest: Run frontend tests
The lint and test tasks can also be run as a single combined command with:
mise run lt
Test snapshots¶
Some tests compare test results with saved snapshots. Test snapshots can be updated by running:
mise run snapup
Documentation server¶
Start the development server with:
mise run docs
The documentation site will be served at:
To use a different bind host/port, run mise run docs --help for usage info.