A full-stack Note Taking Application built with the MERN stack (MongoDB, Express, React, Node.js). Includes user authentication and full CRUD functionality for notes.
- User Registration & Login with JWT authentication
- Create, Read, Update, and Delete (CRUD) personal notes
- Protected routes & authorization
- Responsive UI using React
- Backend API using Express and MongoDB
Frontend
- React
- Axios
- React Router
Backend
- Node.js
- Express
- MongoDB & Mongoose
- JWT (JSON Web Tokens)
- bcryptjs
- dotenv
- cors
git clone https://github.com/Tanendra77/notebook.git
cd notebook- Backend Setup
cd Backend
npm installβοΈ Create a .env file in root of backend if not present and add your monogodb Connection Details
MONGO_URI=mongodb://localhost:27017/Notebook
JWT_SECRET=your_jwt_secret
PORT=5000Start the backend
npm run server- Frontend Setup Open another terminal:
cd notebook-frontend
npm installStart the frontend
npm startπ Folder Structure
notebook-app-mern/
βββ Backend/
β βββ models/
β βββ routes/
β βββ controllers/
β βββ middleware/
β βββ .env
β βββ server.js
βββ notebook-frontend/
β βββ src/
β β βββ pages/
β β βββ components/
β β βββ utils/
β β βββ App.js
βββ README.mdπ API Endpoints
Auth
POST /api/auth/register β Register new user
POST /api/auth/login β Login user (returns JWT token)
Notes
GET /api/notes β Get all user notes (requires token)
POST /api/notes β Create a note
PUT /api/notes/:id β Update a note
DELETE /api/notes/:id β Delete a note
π License This project is open source and free to use under the MIT License.
Made with π» by Tanendra77



