https://github.com/dominique216/e-commerce-backend
This is the back-ed of an e-commerce application that allows users to get, post, update, and delete information from a database.
https://github.com/dominique216/e-commerce-backend
api-routes dotenv expressjs insomnia mysql nodejs restful-api sequelize server
Last synced: 2 months ago
JSON representation
This is the back-ed of an e-commerce application that allows users to get, post, update, and delete information from a database.
- Host: GitHub
- URL: https://github.com/dominique216/e-commerce-backend
- Owner: Dominique216
- License: mit
- Created: 2023-02-07T00:42:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-17T19:05:50.000Z (over 3 years ago)
- Last Synced: 2025-07-27T07:45:56.417Z (11 months ago)
- Topics: api-routes, dotenv, expressjs, insomnia, mysql, nodejs, restful-api, sequelize, server
- Language: JavaScript
- Homepage:
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://opensource.org/licenses/MIT)
# E-commerce-Backend
## Description
Starting with code given to us through our UT course, the goal of this challenge was to create the backend of an e-commerce site. This challenge used Express.js api routes and Sequelize to use information from a mySQL database.
## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [License](#license)
## Installation
1. Copy the SSH key from the Repo into a folder on your own computer
2. Once the files are installed, open the folder in your personal workspace
3. For this application you will have to install express, sequelize, mysql2, and dotenv in the package.json file
4. Add a .env file to the main folder and input your mySQL username, and password
5. Open the integrated terminal on the schema.sql and run source schema.sql.
6. Open the integrated terminal on the server.js file and run node seeds/index.js, then run node server.js
7. Open Insomina and the get, post, update, and delete requests should work for localhost/3001/api/categories, localhost/3001/api/products, and localhost/3001/api/tags. You can also run get routes on an individual id numbers by adding /:id to the end of the url.
## Usage
[Walkthrough Video](https://drive.google.com/file/d/130LjXVgBM22j5iopvI305X9ao73HJ6vn/view)
## License
This project uses an MIT license. For more information click the license badge at the top of the README.