Requirements
- Install Node and npm here
- Set up a MongoDB Atlas instance. See this video for help!
Run the following commands:
-
Client Side: Install dependencies,
npm install
If you get any deprecated warnings, fix them by running:
npm audit fix
To start the client, run:
npm run dev
-
Setting up MongoDB: Create a
.env
file with the following environmental variables:GOOGLE_CLIENT_ID="your google client id" GOOGLE_CLIENT_SECRET="your google client secret" GOOGLE_CALLBACK_URL="your google callback url" SESSION_SECRET="your session secret" MONGO_URI="mongodb://mongodburl.example.com:portnumber"
-
Server Side: Install dependencies:
npm install
If you get any depricated warnings, fixed them by running,
npm audit fix
To start the server, run:
npx tsc npm start