/e-commerce-back-end

A back end for an e-commerce site | Homework 13

Primary LanguageJavaScript

E Commerce Backend- Homework 13

Description

This is a fully-functional backend for an e-commerce site using Express.js and Sequelize to interact with a MySQL database.

Enter schema and seed commands with provided files/documentation and the database is created and seeded with test data-- ready to use.

Easy to use start scripts allow for immediate use of this back end architecture. You can hit the endpoints using Insomnia or another API testing software.

All CRUD operations (Create, Read, Update Delete) are present for Products, Categories, and Tags.

Installation

  • To see the porfolio, visit my Github Repository

  • To install this app, clone the repository and npm i.

  • See Useage for seeding with test data

Usage

To run: - Use mySQL to run the schema in the db directory. - In Node, enter 'npm run seed' to seed the database - After seeding, npm run start or navigate to the root and 'Node server.js' - Use Insomnia to hit endpoints

Screenshot of Application in Insomnia

Walkthrough

Video walkthrough of working application: YouTube

Credits

Patrick Brown

Features

  • Automatic database creation and seed with schema.sql and npm run seed
  • All CRUD operations present for Categories, Products, and Tags
  • Make Database Edits through Insomnia!
  • Utilizes mySQL, Node JS, Express JS, and Sequelize, an object-relational mapper (ORM)

How to Contribute

Send me a message via GitHub and we can connect!