New project for a membership registry. Live production deployment at rekisteri.tietokilta.fi.
Pre-requisites Node.js v24.
# enable corepack (pnpm)
corepack enable
# install deps
pnpm install
# setup env
cp .env.example .env
# start db
pnpm db:start
# or in the background
pnpm db:start -d
# migrate db schema
pnpm db:migrate
# seed data
pnpm db:seed
# run dev server (includes i18n type generation in watch mode)
pnpm dev
# quickly clear, migrate, and re-seed
pnpm db:reset
Login with [email protected] to check the admin view, and any other account to check the regular user view.
Note: i18n types are auto-generated from src/lib/i18n/{fi,en}/index.ts and git-ignored. The dev server automatically watches for translation changes and regenerates types.
Pre-prequisites: Stripe CLI
.env:STRIPE_API_KEY=sk_test_...
# required only on the first time
stripe login
stripe listen --forward-to localhost:"$PORT"/api/webhook/stripe
stripe listen to .envSTRIPE_WEBHOOK_SECRET=whsec_...
To create a production version of your app:
pnpm build
pnpm flake:build
You can preview the production build with pnpm preview.
To deploy your app, you may need to install an adapter for your target environment.
MIT