View Code? Open in Web Editor
NEW
This project forked from stannie-lim/component_lifecycle
HTML 31.09%
JavaScript 68.91%
component_lifecycle's Introduction
- createdb acme_db
- npm i
- npm run start:dev
- go to localhost:3000
- GET
/api/things
shows all the things + the category that it belongs to
- GET
/api/categories
shows all the categories + the things that it has
- GET
/api/things/:id
shows one thing based on their primary key + the category that it belongs to
- GET
/api/categories/:id
shows one category based on their primary key + the things that it has
- Thing has many Category
- Category belongs to Thing
component_lifecycle's People