Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/prakhar301101/crud-todo

Todo app Backend
https://github.com/prakhar301101/crud-todo

crud-application docker-compose expressjs jwt-authentication mongodb mongoose

Last synced: about 5 hours ago
JSON representation

Todo app Backend

Awesome Lists containing this project

README

        

# Todo App (Backend)

## Run app
```
git clone https://github.com/Prakhar301101/CRUD-Todo.git
cd CRUD-api
npm install

Replace process.env.PORT in the index.js file with your desired PORT
Replace process.env.MONGODB_URL in the index.js file with your mongoDb cluster link
Replace process.env.SECRET while using Jwt Secret with a secret of your wish

```

### Endpoints

#### Auth Services
|HTTP Method|URL|Description|
|---|---|---|
|`POST`|http://localhost:8000/api/users | Create new User |
|`POST`|http://localhost:8000/api/users/login | Log-in User |
|`POST`|http://localhost:8000/api/users/me | Get User details |

#### Task Services

|HTTP Method|URL|Description|
|---|---|---|
|`POST`|http://localhost:8000/api/tasks | Create new Task |
|`GET`|http://localhost:8000/api/tasks | Get all Tasks |
|`PUT`|http://localhost:8000/api/tasks/{taskId} | Update Task by Id |
|`DELETE`|http://localhost:8000/api/tasks/{taskId} | Delete Task by Id |