Skip to content

Latest commit

 

History

History

server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

DoodleCollab Backend Setup

Follow these steps to set up the DoodleCollab backend on your local machine.

Step 1: Navigate to Server Folder

cd server

Step 2: Install Dependencies

npm install

Step 3: Set Up MongoDB

  • 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.

Step 4: Create a dotenv File

  • 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>

Step 5: Start the Backend

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!