A simple MERN (MongoDB, Express.js, React, Node.js) notes app for managing your notes.
This MERN Notes App is designed to help you manage and organize your notes efficiently. It uses a modern tech stack to provide a seamless user experience.
Before you begin, ensure you have met the following requirements:
-
Node.js: Make sure you have Node.js installed. You can download it from nodejs.org.
-
MongoDB: You will need a MongoDB instance. You can set up one locally or use a cloud-hosted solution like MongoDB Atlas.
-
Clone the repository:
git clone https://github.com/alisina97/NotesApp-MERN.git
-
Navigate to the repository
cd NotesApp-MERN -
Install server dependencies
cd backend npm i -
Install frontend dependencies
cd ../frontend npm i
-
In the
backenddirectory, create a.envfile with the following content:ACCESS_TOKEN_SECRET=your-secret-key
-
Replace
your-secret-keywith a secure, random string of your choice. -
Update the
config.jsfile located in thebackenddirectory with your MongoDB connection string:{ "connectionString": "your link to mongo db" }
-
Ensure the username, password, and cluster details match your MongoDB instance.
No additional configuration is needed for the frontend.
-
Start the backend server:
cd backend npm start -
The backend server will start on
http://localhost:5000. -
Start the frontend server:
cd ../frontend npm start -
The frontend application will start on
http://localhost:3000. -
Open your browser and navigate to
http://localhost:3000to use the Notes App.
- Add, update, and delete notes.
- Store notes securely in MongoDB.
- Simple, user-friendly interface.
- Frontend: React.js
- Backend: Node.js, Express.js
- Database: MongoDB
- State Management: Context API
This project is licensed under the MIT License.
Contributions are welcome! Please fork this repository and submit a pull request for review.
Special thanks to the open-source community for providing tools and resources that made this project possible.
