Skip to main content
LANCR documentation
Docs
Developer setup

Developer setup

Clone the repo, configure environment variables, run migrations, and start the app locally.

Prerequisites

  • Node.js 18+ (see .nvmrc if you use nvm)
  • PostgreSQL connection string (e.g. Neon) for Prisma
  • Google OAuth credentials (for NextAuth sign-in)
  • Resend API key (for transactional email, if enabled)

Install

npm install

Copy .env.example to .env.local and fill in DATABASE_URL, AUTH_SECRET, GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, RESEND_API_KEY, and NEXT_PUBLIC_APP_URL.

Database

npx prisma migrate deploy
npx prisma generate

Optional seed data for demo users and sandbox entities:

npm run db:seed

Development

npm run dev

Open http://localhost:3000. Marketing routes are public; participant, regulator, and digital-sandbox routes require sign-in with the appropriate role.

Production build

npm run lint
npm run build
npm run start