Skip to content

MtendeRoll/eCommerceBackend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

e-Commerce Backend

This is a backend application that uses a working Express.js API and is configured to use Sequelize to interact with a MySQL database.

Table of contents

Installation

The JSON file will have the necessary dependencies. type this in your command line:

node server.js
node seeds/seed.js

Then open insomnia to do the GET, POST, PUT and DELETE requests to test out the application.

Application Criteria

GIVEN a functional Express.js API:

  • WHEN I add my database name, MySQL username, and MySQL password to an environment variable file THEN I am able to connect to a database using Sequelize
  • WHEN I enter schema and seed commands THEN a development database is created and is seeded with test data
  • 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 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

Links

Walkthrough Video

  • A walkthrough video that demonstrates the functionality of the e-commerce back end.

Video

Mock-up

  • Gif showing the mock-up of the finished application mock-up

License

  • MIT

MIT License Copyright (c) [2022] 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.

Releases

No releases published

Packages

No packages published