heidiwu3388 / E-commerce-Back-End

The back end of an e-commerce site. It provides REST APIs for Creating, Retrieving, Updating and Deleting (CRUD) data from the database. It is implemented by using Express.js, MySQL and Sequelize.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

E-commerce-Back-End

Module 13 - Object-Relational Mapping (ORM) Challenge

GitHub license

Description

This application is the back end of an e-commerce site. It provides REST APIs for Creating, Retrieving, Updating and Deleting (CRUD) data from the database. It is implemented by using Express.js, MySQL and Sequelize.

Table of Contents

Installation

  1. Start with cloning this repo:

    $ git clone https://github.com/heidiwu3388/E-commerce-Back-End.git
    $ cd E-commerce-Back-End
    
  2. Install all dependencies

    $ npm install
    
    
  3. Set up the environment variables:

    • rename .env.EXAMPLE to .env
    • edit .env to include your database's user name and password
    DB_NAME='ecommerce_db'
    DB_USER=''
    DB_PASSWORD=''
    
    
  4. Create database

    $ mysql -u root -p
    
    mysql> source ./db/schema.sql
    mysql> quit
    
  5. Seed the database (optional)

    $ npm run seed
    
  6. run the application

    $ npm start
    

Usage

Demo

License

This project is licensed under the terms of the MIT license.

About

The back end of an e-commerce site. It provides REST APIs for Creating, Retrieving, Updating and Deleting (CRUD) data from the database. It is implemented by using Express.js, MySQL and Sequelize.

License:MIT License


Languages

Language:JavaScript 100.0%