Follow these steps to set up the DoodleCollab backend on your local machine.
cd server
npm install
- Visit MongoDB and create a new MongoDB project (create a free cluster).
- Connect to the cluster using MongoDB Compass and copy the MongoDB Compass string.
- Create a file named .env in the server folder and add the following line, replacing <your_mongodb_compass_string> with the copied MongoDB Compass string and replace <your_jwt_secret> with a JWT SECRET:
MONGO_URI=<your_mongodb_compass_string>
JWT_SECRET=<your_jwt_secret>
Run the following command to start your backend server:
npm start
Now, the backend is all set up, and you can start working on the project.
Happy coding!