An open API service indexing awesome lists of open source software.

https://github.com/arefshojaei/todo-list-api

NodeJS , ExpressJS and MongoDB
https://github.com/arefshojaei/todo-list-api

api back-end expressjs mongodb nodejs rest-api todo-api todo-list-api todolist

Last synced: 3 months ago
JSON representation

NodeJS , ExpressJS and MongoDB

Awesome Lists containing this project

README

          

Todo-list API ✌️

NodeJS , ExpressJS and MongoDB

###


javascript logo

nodejs logo

express logo

mongodb logo


How to use it?

> First step:

Install all package dependencies from NPM
```bash
npm install
```

> Second step:

After installing packages, then create ".env" file in root of the project and add these variables
```bash
APP_PORT = 3000
MONGODB_URL = mongodb://127.0.0.1:27017/database_name
```
###
###
###

API End-points + HTTP methods

###
> Create new Todo
```txt
[POST] /api/todos
```

> Get all Todos
```txt
[GET] /api/todos
```

> Get Todo by ID
```txt
[GET] /api/todos/:id
```

> Update Todo by ID
```txt
[PATCH] /api/todos/:id
```

> Delete Todo by ID
```txt
[DELETE] /api/todos/:id
```

> Delete all Todos
```txt
[DELETE] /api/todos
```