Backend
-
Change current directory to server
cd server
-
Install Dependencies
npm i
-
Create a .env file
-
Copy all env variables from .env.example to .env file
- MONGODB_URL: URL for MONGODB Server (Start a Local one or set one up online on cloud.mongodb.com)
- FRONTEND_ORIGIN_URL: http://localhost:5173
- SESSION_SECRET: Use whatever string you like locally BUT make sure to use a complex and long string while deploying the server
-
Start the Server
npm run dev
Frontend
-
Change directory to client
cd client
-
Install Dependencies
npm i
-
Change the Constant 'SERVER_URL' in constants.ts to http://localhost:3000
-
Start Client
npm run dev