| Request Method | Endpoint | Description |
|---|---|---|
| GET | /todo | Get all todos |
| POST | /todo/create | Create a todo |
| PUT | /todos/:id | Update a todo |
| DELTE | /todos/:id | Delete a todo |
- Clone the repository
git clone https://github.com/nstack-in/todo-api-node-js-mongo.git
- Install dependencies
npm install
- Modily
.envfile and add your mongodb server url - Run the server
npm start
| Dependency | Version | Description |
|---|---|---|
| express | 4.17.1 | Node.js web application framework |
| mongoose | 6.0.5 | MongoDB object modeling tool for Node.js |
| dotenv | 10.0.0 | Load environment variables from a .env file into process.env |
| nodemon | 2.0.12 | Node.js runtime monitor and restart server |