A simple, responsive to-do list web app with user authentication.
- Secure user registration and login
- Each user can manage their own tasks
- Add, edit, and delete tasks in real-time
- Works on desktop, tablet, and mobile
- Clean and modern design
- Frontend: HTML, CSS, JavaScript
- Backend: Node.js, Express.js
- Database: MongoDB
- Authentication: JWT
- Clone the repository:
git clone https://github.com/yourusername/taskmaster.git cd taskmaster - Install dependencies:
npm install
- Create a
.envfile and add:JWT_SECRET=your_secret_key_here MONGODB_URI=mongodb://127.0.0.1:27017/todo PORT=5000
- Start the server:
npm start
- Open the app in your browser at
http://localhost:5000
User Authentication:
POST /register- Register a new userPOST /login- Login and get a token
Task Management:
GET /tasks- Get all tasks for the logged-in userPOST /tasks- Add a new taskPUT /tasks/:id- Update a taskDELETE /tasks/:id- Delete a task
- Register an account
- Login to access your personal tasks
- Add a new task
- Edit a task inline
- Delete a task
- Logout when done
- Passwords are hashed with bcrypt
- JWT authentication for secure access
- Users can only access their own tasks
- Task categories and due dates
- Dark mode
- Task sorting and filtering
Contributions are welcome! Feel free to submit a pull request.