In the root folder of the repository:
$ npm install
- Make a copy of
/.env.example
at/.env
.
Start up the local development environment (full infrastructure) by running:
$ npm run dev:full
Start up the local development environment (frontend and backend only) by running:
$ npm run dev
The frontend should be served from http://localhost:3000 and the backend should be accessible from http://localhost:8080.
Create a new migration file by running:
$ npm run migration:gen -- <name_of_migration>
Synchronize your database with existing migrations by running:
$ npm run migration:run
Update the type definitions in the Prisma Client package by running:
$ npm run prisma:gen
Seed the database with questions by running:
$ npm run on-serverless build
$ npm run on-serverless start