Skip to content

To-Do List API A Node.js RESTful API for managing to-do tasks with Express.js and MongoDB. Features include user authentication with JWT, task CRUD operations, token refresh logic, input validation, and custom middleware for security and error handling. Designed with a modular structure for scalability and maintainability.

Notifications You must be signed in to change notification settings

fzaura/to-do-list-api

Repository files navigation

To-Do List API

A RESTful API built with Node.js, Express.js, and MongoDB for managing to-do tasks. The application supports secure user authentication, robust task management, and token-based session handling.

Features

  • User registration and login with JWT authentication
  • CRUD operations for user-specific tasks
  • Refresh token logic for seamless sessions
  • Input validation for authentication and tasks
  • Modular architecture: controllers, routes, models, middleware
  • Custom error handling and security middleware

Getting Started

  1. Clone the repository
  2. Install dependencies: npm install
  3. Set up MongoDB and environment variables
  4. Start the server: npm start

API Endpoints

  • /auth/register - Register a new user
  • /auth/login - Login and receive JWT
  • /tasks - Manage tasks (CRUD, requires authentication)

Technologies

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

License

MIT

About

To-Do List API A Node.js RESTful API for managing to-do tasks with Express.js and MongoDB. Features include user authentication with JWT, task CRUD operations, token refresh logic, input validation, and custom middleware for security and error handling. Designed with a modular structure for scalability and maintainability.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published