Skip to content

CS3219-AY2223S1/cs3219-project-ay2223s1-g5

Repository files navigation

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

About

cs3219-project-ay2223s1-g5 created by GitHub Classroom

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •