Skip to content

Latest commit

 

History

History
66 lines (41 loc) · 1.17 KB

File metadata and controls

66 lines (41 loc) · 1.17 KB

CodeCollab

Getting Started

Install dependencies

In the root folder of the repository:

$ npm install

Environment Variables

  1. Make a copy of /.env.example at /.env.

Run the application

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.

Synchronizing the database

Creating migrations

Create a new migration file by running:

$ npm run migration:gen -- <name_of_migration>

Running existing migrations

Synchronize your database with existing migrations by running:

$ npm run migration:run

Updating the Prisma Client

Update the type definitions in the Prisma Client package by running:

$ npm run prisma:gen

Seeding the database

Seed the database with questions by running:

$ npm run on-serverless build
$ npm run on-serverless start