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.
- 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
- Clone the repository
- Install dependencies:
npm install
- Set up MongoDB and environment variables
- Start the server:
npm start
/auth/register
- Register a new user/auth/login
- Login and receive JWT/tasks
- Manage tasks (CRUD, requires authentication)
- Node.js
- Express.js
- MongoDB & Mongoose
- JSON Web Tokens (JWT)
MIT