A RESTful Task Tracker API built with Node.js, Express, MongoDB, and JWT authentication.
- User registration
- User login
- JWT-based authentication
- Create task
- Get all my tasks
- Get single task by id
- Update task
- Delete task
- Node.js
- Express.js
- MongoDB Atlas
- Mongoose
- JWT
- bcryptjs
npm install
npm run devCreate a .env file in the root directory:
PORT=5050
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_secret_key- POST
/api/auth/register - POST
/api/auth/login
- GET
/api/tasks - GET
/api/tasks/:id - POST
/api/tasks - PATCH
/api/tasks/:id - DELETE
/api/tasks/:id