A minimal MERN (MongoDB, Express, React, Node.js) application that allows users to add and view notes.
This project demonstrates the basic structure of a MERN stack app with models, controllers, routes, and a simple frontend.
- Backend with Express & MongoDB
- Note model and schema
- REST API with CRUD routes
- Modular structure (controllers, routes, models)
- Frontend with React
- Add new notes
- Display notes from the backend
git clone https://github.com/yourusername/basic-mern-app.git
cd basic-mern-appcd backend
npm installCreate a .env file inside backend/:
PORT=5000
MONGO_URI=your_mongodb_connection_string
Run backend:
npm startcd ../frontend
npm install
npm start- Open your browser at
http://localhost:3000 - Add a note using the form
- See the list of notes fetched from the backend
- Frontend: React, Fetch API
- Backend: Node.js, Express.js, MongoDB, Mongoose
- Database: MongoDB Atlas or local MongoDB