EPFL CourseFinder

Development set up

Define environment secrets

Create a .env file in the root of the directory. It should define the following environment variables:

  • DB_URI: MongoDB access token to production database.
  • DB_URI_TEST: MongoDB access token to test database.
  • PORT: the port on localhost where the server will be listening.
  • NODE_ENV: one of {production, development}. The corresponding MongoDB database will be used.
  • JWT_SECRET: secret used to verify the cookie.

Ask @tiger-pillow to send you the magic file.

Install dependencies and start the server

Run the following

npm install
cd client
npm install
cd ..
npm run dev

DB related functions

  • when at the beginning of the semester, update database for newcourses
  • all Database functions start with db