https://github.com/jmcmillenmusic/orm-e-commerce-back-end
Tech demo that utilizes application programming interface routes to create, read, update, and delete data for an online store
https://github.com/jmcmillenmusic/orm-e-commerce-back-end
express-js insomnia node-js sequelize-orm sql
Last synced: 6 days ago
JSON representation
Tech demo that utilizes application programming interface routes to create, read, update, and delete data for an online store
- Host: GitHub
- URL: https://github.com/jmcmillenmusic/orm-e-commerce-back-end
- Owner: jmcmillenmusic
- License: mit
- Created: 2023-08-08T03:29:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-26T21:30:39.000Z (almost 3 years ago)
- Last Synced: 2026-07-21T01:33:36.717Z (6 days ago)
- Topics: express-js, insomnia, node-js, sequelize-orm, sql
- Language: JavaScript
- Homepage: https://jmcmillenmusic.github.io/orm-e-commerce-back-end/
- Size: 183 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ORM-E-Commerce-Back-End
## Description
As a web developer, it's important that I understand how API routes work on the back end of a project when it comes to creating, reading, updating, and deleting data. Since E-commerce is a rather huge industry, I figured that I would showcase my understanding of back-end API routes by putting together an E-commerce back-end that does exactly that.
## Installation
To access the E-Commerce Back-End, you'll need to clone the repo at the link below:
https://github.com/jmcmillenmusic/orm-e-commerce-back-end
You'll need to make sure that you also have DotENV, Sequelize, the MySQL Node package, and Express by running the following commands in the terminal:
`npm i dotenv`
`npm i sequelize`
`npm i mysql`
`npm i express`
Then, you'll need to initialize all of these using the following command in the terminal:
`npm init`
You'll need to access a back-end routing program like Insomnia to test the routes, which you can get at https://insomnia.rest/.
## Usage
To access the database and manipulate its data, open the terminal from `server.js` and run the following command in the terminal:
`mysql -u root -p`
Once you enter your password, you'll be logged in.
Run this command in the terminal to set up the database:
`SOURCE db/schema.sql;`
Then, type `quit` to close MySQL.
Then, run this command in the terminal to seed the database:
`node seeds/index.js`
Then, run this command to start the server:
`node server.js`
From there, you can run your routes in Insomnia in order to see all of the Create, Read, Update, and Delete functions.
You can watch this video to see the E-commerce back-end in action:
https://drive.google.com/file/d/1bMyKwr81L5aw-iZ_WQa4Se1jPRnwy48R/view


## Credits
N/A
## License
This project uses the MIT License.