Skip to content

The back end suite of services to support businesses of all sizes.

License

Notifications You must be signed in to change notification settings

avidrunner87/e-commerce-back-end

Repository files navigation

e-commerce-back-end

Table of Contents

  1. Description
  2. Usage
  3. User Story
  4. Acceptance Criteria
  5. Licenses
  6. Technology
  7. Mock-up
  8. Support

Description

The back end suite of services to support businesses of all sizes.

Usage

You can access the app here: https://github.com/avidrunner87/e-commerce-back-end.

User Story

AS A(N) manager at an internet retail company
I WANT a back end for my e-commerce website that uses the latest technologies
SO THAT my company can compete with other e-commerce companies

Acceptance 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 Core 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 Core
THEN I am able to successfully create, update, and delete data in my database

Licenses

License: MIT

Technology

JavaScript Shell

Mock-up

The following picture shows the website appearance and capabilities:



We also have a video that walks you through the entire application:

Access Video

Support

Installation

To fork this code to further improve the website, please follow these directions:

  1. In Github fork the repository.

  2. Clone the repository to your local computer.

    This assumes that you have setup your own SSH keys to connect with Github.

  3. Before running the employee tracker app, please ensure all the necessary node modules are installed:

    npm install
    
  4. You will also need to setup your initial database for the application.

    • Log into your local mysql instance

    • Source the schema.sql file located in the db folder

  5. Copy and update contents of the .env.example file to reflect your local computer

    cp .env.example .env
    
  6. Seed the database with data.

    npm run seed
    

You can run the application using the following command:

npm start

Questions

If you have any questions please reach out to me via Github or via email.

About

The back end suite of services to support businesses of all sizes.

Topics

Resources

License

Stars

Watchers

Forks