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

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

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
```