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
- Host: GitHub
- URL: https://github.com/arefshojaei/todo-list-api
- Owner: ArefShojaei
- Created: 2023-06-12T09:39:44.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2026-02-10T17:45:35.000Z (5 months ago)
- Last Synced: 2026-02-10T21:24:03.181Z (5 months ago)
- Topics: api, back-end, expressjs, mongodb, nodejs, rest-api, todo-api, todo-list-api, todolist
- Language: JavaScript
- Homepage: https://todo-list-api-666z.onrender.com/api/todos/
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Todo-list API ✌️
NodeJS , ExpressJS and MongoDB
###
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
```