Local setup
Set up your project
The first time you clone the project, run the following commands:
npm install -g pnpm
This installs pnpm if you don't have it.
pnpm run init
This starts your docker services, intialise your .env and initialize your PostgreSQL database with mock data.
Run your front-end and back-end
pnpm run dev
Environment Variables
Key | Default | Description |
---|---|---|
NODE_ENV | development | Environment |
SERVER_DATABASE_URL | postgres://root:root@localhost:5442/api | Database url |
NEXTAUTH_SECRET | mysecret | Authentication secret |
NEXTAUTH_URL | http://localhost:3000 | Base URL of your app |