Skip to main content

Prerequisites

1. Clone the repository

2. Install dependencies

Mocha is a Bun monorepo. Install all workspace dependencies from the root:

3. Configure environment variables

API (apps/api/.env)

Client (apps/client/.env)

If you access the dev server from a VM or a different host (e.g. WSL2 or a remote machine), add ALLOWED_DEV_ORIGINS="your-ip" to apps/client/.env to allow the HMR websocket through.

4. Set up the database

Push the Prisma schema to your database and generate the client:
Optionally seed with starter data:

5. Start the development servers

From the repo root, run all apps in parallel:
To run a single app in isolation:

6. Docs (optional)

Preview the documentation site locally:

Useful commands