https://github.com/therealpad/todolistreact
Todo list in reactjs and nodejs
https://github.com/therealpad/todolistreact
Last synced: about 2 months ago
JSON representation
Todo list in reactjs and nodejs
- Host: GitHub
- URL: https://github.com/therealpad/todolistreact
- Owner: TheRealPad
- Created: 2022-05-25T15:54:16.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-28T13:00:21.000Z (almost 4 years ago)
- Last Synced: 2024-04-24T05:24:22.879Z (about 2 years ago)
- Language: JavaScript
- Size: 1.01 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API-reactjs-nodejs
Simple CRUD API in react and nodejs, with express and axios
Database: mongodb (https://www.mongodb.com/docs/manual/installation/)
## install dependencies
In frontend/ and backend/ :
```
npm install
```
# USAGE
start backend:
```
cd backend/
npm start
```
start frontend:
```
cd frontend/
npm start
```
# API
## /create-todo
Input:
```
title: string
description: string
finish: bool
```
Output: New task created (json)
## /get-todo
Input: None
Output: json
## /update-todo/:id
Input:
```
id: any
title: string
description: string
finish: bool
```
Output: task update (json)
## /delete-todo/:id
Input:
```
id: any
title: string
description: string
finish: bool
```
Output: task deleted (json)
## Test with Postman
For all route wich need data, you can add add it in the body as x-www-form-urlencoded
# DATA
Table Todo:
```
title: String
description: String
finish: Boolean
```