Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/prakhar301101/crud-todo
- Owner: Prakhar301101
- Created: 2024-07-12T17:30:11.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-28T14:47:40.000Z (4 months ago)
- Last Synced: 2024-08-24T02:43:01.168Z (3 months ago)
- Topics: crud-application, docker-compose, expressjs, jwt-authentication, mongodb, mongoose
- Language: JavaScript
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Todo App (Backend)
## Run app
```
git clone https://github.com/Prakhar301101/CRUD-Todo.git
cd CRUD-api
npm installReplace 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 |