https://github.com/sakshi2215/todoapppractise
To-Do List API is a secure, token-based REST API built with Node.js and MongoDB that allows users to register, log in, and manage their personal tasks with full CRUD operations and authentication.
https://github.com/sakshi2215/todoapppractise
bcrypt-nodejs dotenv express jwt mongodb nodejs nodemon
Last synced: 7 months ago
JSON representation
To-Do List API is a secure, token-based REST API built with Node.js and MongoDB that allows users to register, log in, and manage their personal tasks with full CRUD operations and authentication.
- Host: GitHub
- URL: https://github.com/sakshi2215/todoapppractise
- Owner: sakshi2215
- Created: 2025-05-28T18:14:24.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-05-28T18:16:23.000Z (8 months ago)
- Last Synced: 2025-06-27T07:40:03.097Z (7 months ago)
- Topics: bcrypt-nodejs, dotenv, express, jwt, mongodb, nodejs, nodemon
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# To-Do List API
## Description
A secure and user-based To-Do List REST API built with Node.js, Express, and MongoDB. It supports user registration, login with JWT authentication, and full CRUD operations on tasks scoped to each authenticated user.
---
## Tech Stack
- **Node.js** with **Express.js** – Backend framework
- **MongoDB** with **Mongoose** – NoSQL database and ORM
- **JWT** – For authentication and route protection
- **bcrypt.js** – For secure password hashing
- **dotenv** – Environment configuration
- **nodemon** – Dev tool for live server reloads
---
## Main Features
- **User Authentication:**
- Register, login, logout
- JWT token generation, refresh, and verification
- Change password securely
- **Task Operations:**
- Create a task (title, description, status)
- Read all tasks or a specific task (owned by the user)
- Update task details (if owned)
- Delete task (if owned)
- **Security & Middleware:**
- Authentication middleware to protect routes
- Error handling middleware for cleaner responses
---
## Status Options for Tasks
- `pending` (default)
- `in-progress`
- `done`
---
This API is ideal for building a personal task manager with secure multi-user support. Want to add features like due dates or priority levels next? I got you.