Challenge 18
Description
This project is for self-improvement and practice in order to provide myself with confidence within this industry.
This back end for an e-commerce site was created by modifying starter code given to us.
Express.js API and Sequelize was used to interact with a MySQL database.
Installation
To install the project:
npm i
mysql source schema.sql
npm run seed
npm start
Usage
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
WHEN I test API POST, PUT, and DELETE routes in Insomnia
THEN I am able to successfully create, update, and delete data in my database
GitHub Repository:
https://github.com/arkenwald/ORM-E-Commerce-Back-End
Video Walkthrough:
https://drive.google.com/file/d/1ptA0LpeVrfBAq-DGmXkPAiK6RuCcYHFr/view
Credits
Collaborated with:
Website Resources:
https://www.npmjs.com/package/dotenv
https://sequelize.org/docs/v6/core-concepts/model-querying-finders/
https://sequelize.org/docs/v6/core-concepts/validations-and-constraints/
https://sequelize.org/docs/v6/core-concepts/assocs/
License
MIT License
Copyright (c) 2023, Peter Tong
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.