- Express.js
-
get one item by id
-
delete one item by id
- delete http://localhost:3000/msgs/1
-
update one item by id and the new item object
-
JSON format: {"id" : 3, "msg" : "asd999"}
-
get list
-
post one item
- post http://localhost:3000/msgs/
- JSON format: {"id" : 4, "msg" : "asd66"}
-
Enable CORS on Express
-
Use redux-thunk as middleware to async fetch data from API server
-
Use axios to get, post, delete and put backend API server