- Bun or Node 20.14 with pnpm
- SQLite
You can develop locally with Bun or pnpm, but the production build must use pnpm.
Note: Bun has known issues with SQLite3 in production mode. It works in developer mode, but Bun cannot start the server during a build.
- Clone the repository
- Install dependencies using
bun install
orpnpm install
. - Initialize demo data with
bun run init-demo-data
orpnpm run init-demo-data
- Start the local development server with
bun run dev
orpnpm run dev
Tip: If you do not need demo data, replace step 3 with the following command:
bun run init
orpnpm run init
.
-
Password for all users:
test123
-
Location of user data: See line 5 in
./scripts/demo_data.ts
To run tests, execute:
vitest
Issue: Error in node_module
with sqlite3
.
Solution: Rebuild SQLite3 using:
npm rebuild better-sqlite3