/E-Commerce_-Retail-_Back_End

Back end for an e-commerce website using the MySQL2 and Sequelize packages to connect an Express.js API to a MySQL database along with the dotenv package to store sensitive data through environmental variables.

Primary LanguageJavaScriptMIT LicenseMIT

E-Commerce_-Retail-_Back_End

Github license

Description:

Back end for an e-commerce website using the MySQL2 and Sequelize packages to connect an Express.js API to a MySQL database along with the dotenv package to store sensitive data through environmental variables.

Table of Contents


Installation:


  • Download the code via your preferred method, by clicking the green code button at the top of this page.

  • If you don't have Node.js, you can install it here.

  • Once you're sure the above steps are completed, the dependencies (and their sub-dependencies) are easily installed by navigating to the project's local directory within your command line and entering the below code:

npm i
  • Once installed, it's time to source the data by logging into MySQL
mysql -u root -p

-Enter your password, then run:

source db/schema.sql;

DON'T FORGET YOUR LINE ENDING SEMI-COLONS IN SQL

-Promptly exit sql by typing "quit" or "exit".

-Then to seed the data, simply:

npm run seed

Once that is successful:

npm start

and the back-end will be up and running.

Access the data by either the browser, or a REST API client such as Insomnia.


Usage:


Here's a youtube video showing the process.

youtube application screenshot


Credits:



License


MIT License

Copyright (c) 2021 AndiS90

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.


To Contribute:

  • Fork this repo, create a branch and have fun with it!

or

or


Tests:


No current tests.


Questions:


If you have questions I can be reached in the following manners below