Skip to content

Latest commit

 

History

History
27 lines (12 loc) · 719 Bytes

README.md

File metadata and controls

27 lines (12 loc) · 719 Bytes

Cotangles

A social timetable web-app where users can share their schedules via iCal links

Setting Up

To setup the frontend:

  1. cd frontend/cotangles && npm i

  2. npm run prepare (to setup husky)

To setup the backend:

  1. cd backend && npm i

Connecting to MongoDB

A quick guide on MongoDB's NodeJs Driver: https://www.mongodb.com/docs/drivers/node/current/quick-start/connect-to-mongodb/

To connect to a cluster, create a src/.env.local file in backend folder. Avoid exposing the DB uri connection string by storing it in this env file.

From the backend folder, run npx tsx src/dbInterface.ts to test whether a connection has been successfully established to the DB.