A full-stack Notes application with user authentication using JWT. Users can register, log in, and securely manage personal notes. The app features a clean, modern interface with the ability to add, view, and delete notes.
- User registration and login with password hashing
 - JWT-based authentication for secure API endpoints
 - CRUD operations for notes (add, view, delete)
 - Responsive, modern frontend design
 - Local storage to manage authentication tokens
 
- Backend: Node.js, Express, bcrypt, jsonwebtoken
 - Frontend: HTML, CSS, JavaScript
 - Storage: In-memory array (can be extended to MongoDB)
 
- Clone the repository:
 
git clone https://github.com/YOUR_USERNAME/NotesApp.git
cd NotesApp- Install dependencies:
 
npm install express bcrypt jsonwebtoken dotenv cors open- Create a 
.envfile in the root directory with: 
JWT_SECRET=your_secret_key
PORT=5000
- Start the server:
 
node server.js- Open the app in your browser:
 
http://localhost:5000/register.html
- Register: Create a new account
 - Login: Log in with your credentials
 - Notes Page: Add and delete notes; logout when done
 
- This project currently uses an in-memory array for users and notes. To persist data, you can integrate MongoDB or another database.
 - Tokens are stored in localStorage for simplicity.