api-ecommerce-backend's Issues
Build out a professional readme that provides clear instructions on how to use the app.
Uses Sequezlize as an ORM to connect to MySQL Database
WHEN I enter the command to invoke the application
THEN my server is started and the Sequelize models are synced to the MySQL database
When an API Called is made, the response to client is in JSON format
WHEN I open API GET routes in Insomnia for categories, products, or tags
THEN the data for each of these routes is displayed in a formatted JSON
Execute association methods on your Sequelize models to create the following relationships between them:
Has the ability to import a seed database into MySQL
Database should contain the following four models, including the requirements listed for each model:
Category
Product
Tag
ProductTag
Add Walkthrough video to README with how to use API
- Show package.json
- npm i
- While running, update .env with info
- MySQL -u root -p < db/schema.sql
- npm start
- Demonstrate API calling with Insomnia
- GET ALL
- categories
- products
- tags
- GET /:id
- categories
- products
- tags
- POST
- categories
- products
- tags
- PUT /:id
- categories
- products
- tags
- DELETE /:id
- categories
- products
- tags
GIVEN a functional Express.js API
AS A manager at an internet retail company
Review the Starter Code framework, to verify working env
API Gives access to full CRUD.
Fill Out the API Routes to Perform RESTful CRUD Operations
Notes
The functionality for creating the many-to-many relationship for products is already done for you.
Be sure to look at your module project's code for syntax help and use your model's column definitions to figure out what req.body
will be for POST
and PUT
routes!
Category
Product
Tags