Skip to content

ArefShojaei/Todo-list-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

npm install

Second step:

After installing packages, then create ".env" file in root of the project and put these variables in the file

APP_PORT = 3000
MONGODB_URL = mongodb://127.0.0.1:27017/database_name

API End-points + HTTP methods

Create new Todo

[POST] /api/todos

Get all Todos

[GET] /api/todos

Get Todo by ID

[GET] /api/todos/:id

Update Todo by ID

[PATCH] /api/todos/:id

Delete Todo by ID

[DELETE] /api/todos/:id

Delete all Todos

[DELETE] /api/todos

Releases

No releases published

Packages

 
 
 

Contributors