Skip to content

Tanendra77/notebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“’ NoteBook (MERN Stack)

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.


πŸš€ Features

  • 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

🧱 Tech Stack

Frontend

  • React
  • Axios
  • React Router

Backend

  • Node.js
  • Express
  • MongoDB & Mongoose
  • JWT (JSON Web Tokens)
  • bcryptjs
  • dotenv
  • cors

πŸ”§ Setup Instructions

1. Clone the Repository

git clone https://github.com/Tanendra77/notebook.git
cd notebook
  1. 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=5000

Start the backend

npm run server
  1. Frontend Setup Open another terminal:
cd notebook-frontend
npm install

Start 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

⚠️ All /api/notes routes require a valid Authorization: Bearer header.

πŸ“Έ Screenshots

Home Page

Home Page

Login Page

Login

Register Page

Register

Notes Page

Notes

πŸ“„ License This project is open source and free to use under the MIT License.

πŸ™Œ Author

Made with πŸ’» by Tanendra77

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published