- Clone this repository
- Run
npm install
- Create a
.env
file and add the following:
PORT=5000
MONGO_URI=your_mongodb_uri
JWT_SECRET=your_jwt_secret
- Run
npm run dev
- Test the API using Postman or any API testing tool
- POST /api/user/register
- POST /api/user/login
- POST /api/todo
- PUT /api/todo/:id
- DELETE /api/todo/:id
- GET /api/todo