Note taking application. This application is built using React for the frontend and Node.js for the backend, with MongoDB Atlas serving as the database. Below are the setup instructions for running the project locally on your machine.
Ensure you have Node.js installed with version at least v20.11.0. You can download and install the latest version of Node.js from here.
After installing Node.js and setting up npm
, you need to set up the database.
You have two options for setting up MongoDB:
-
MongoDB Atlas (Preferred):
- Create a MongoDB Atlas account at MongoDB Atlas.
- Set up a new cluster and create a database.
- Obtain the connection string for your database.
-
Local MongoDB:
- Download and install MongoDB from here.
- Follow the instructions to set up a local MongoDB server.
git clone https://github.com/GowthamG30/notate-app.git
cd notate-app
In the project root directory, install backend dependencies:
npm install
Navigate to the frontend
folder and install frontend dependencies:
cd frontend
npm install
- In the root directory, create a file named
.env
. - In the
.env
file, add the MongoDB Connection String as shown in the example below:
MONGO_URI=mongodb+srv://<username>:<password>@cluster0.2kecy.mongodb.net/notateDB
Start the Node.js backend server:
npm start
Start the React frontend application:
cd frontend
npm start
The backend server will run on http://localhost:5001
and the frontend on http://localhost:3000
.