/e-commerce-backend

Primary LanguageJavaScriptMIT LicenseMIT

e-commerce-backend

Description

A mysql database and application backend for an e-commerce site. Built using MySQL2, Express, Sequelize and dotenv.

Installation

npm init

npm install

(You will need to create a .env file also)

Usage

Run the following command at the root of your project and answer the prompted questions:

mysql -u root -p

Enter password when promted

source db/schema.sql

quit

npm run seed

npm start

Test Demonstrations

All of the GET Routes:

All GET Routes

POST, PUT and DELETE for Categories

POST PUT DELETE Categories

POST, PUT and DELETE for Tags

POST PUT DELETE Tags

POST, PUT and DELETE for Products

POST PUT DELETE Products