Full Stack React To Do list
For this homework, you will be creating a to do list using React.
Build Your TodoList Into A Full Stack TodoList Application
// use this for seed data
const toDoListData = [
{
title: "Learn more about React",
completed: true
},
{
title: "Write a new Component",
completed: false
},
{
title: "Add some style",
completed: false
}
];| URL | HTTP Verb | Action | Used For | Mongoose Model Function |
|---|---|---|---|---|
| /api/todos/ | GET | index | Displaying a list of all todos | .find |
| /api/todos/ | POST | create | Create a new todo | .create |
| /api/todos/:id | GET | show | Display a specific todo | .findById |
| /api/todos/:id | PUT | update | Update a specific todo | .findByIdAndUpdate |
| /api/todos/:id | DELETE | destroy | Delete a specific todo | .findByIdAndDelete |