Skip to main content

Quickstart

Prerequisites​

Node 22. MongoDB for production (an in-memory file store is used for local development).

Run locally​

cd server && npm ci
export JWT_SECRET=$(openssl rand -hex 32) KEY_ENCRYPTION_KEY=$(openssl rand -hex 32) \
VAPID_SUBJECT=mailto:you@example.com PUBLIC_API_URL=http://localhost:8080 \
MEMORY_STORE_FILE=./dev-store.json
npm run bootstrap -- --name "My site" --slug mysite --origin http://localhost:5173 \
--click-url "http://localhost:5173/n/{deliveryId}?t={token}"
npm run dev
npm test

bootstrap prints the API keys once, so save them.