Please enable JavaScript.
Coggle requires JavaScript to display documents.
Category + Task - Coggle Diagram
Category + Task
1
Identify the model - Category
Identify the schema
name
String
Required
2
Setup the controller
1
Require model
2
Export cateCtrl
3
Setup api routes
list
test api
create
test api
find
test api
update
test api
destroy
test api
3
Setup routes
1
require cateCtrl
Get /api/categories
Post/api/categories
Get /api/categories/:id
Put api/categories/:id
Delete /api/categories/:id
4
Connect Task with category