Quick Start
Get the full stack running locally in under five minutes.
Prerequisites
- Node.js 22+
- npm 9+
- Docker (for PostgreSQL and Redis)
Setup
-
Clone and install
Terminal window git clone https://github.com/HandoverKey/HandoverKey.gitcd HandoverKeynpm install -
Copy env files
Terminal window cp apps/api/.env.example apps/api/.envcp apps/web/.env.example apps/web/.env -
Generate required secrets
Open
apps/api/.envand fill in the two required secrets:Terminal window JWT_SECRET=$(openssl rand -base64 64)ACTIVITY_HMAC_SECRET=$(openssl rand -base64 64) -
Start infrastructure and run migrations
Terminal window npm run docker:upnpm run db:migrate -
Start the dev servers
Terminal window npm run dev
Local URLs
| Service | URL |
|---|---|
| Web app | http://localhost:5173 |
| API | http://localhost:3001/api/v1 |
| WebSocket | ws://localhost:3001/ws |
What’s next?
- Set up SMTP so email reminders and handover notifications work
- Review the Security Model before storing real secrets
- Read the full Deployment Guide for production setup