This application is an Express.js API that uses Sequelize to interact with a MySQL database. It allows you to manage categories, products, and tags of an e-commerce application.
- Database Connection: Connects to a MySQL database using Sequelize by providing database name, MySQL username, and MySQL password in an environment variable file.
- Database Creation and Seeding: Allows creating a development database and seeding it with test data using schema and seed commands.
- Server Start and Model Sync: Starts the server and syncs the Sequelize models to the MySQL database.
- Test API GET Routes: Allows testing of the API GET routes for categories, products, or tags to ensure the data is being retrieved correctly.
- Test API POST, PUT, DELETE Routes: Allows testing of the API POST, PUT, and DELETE routes to ensure the data can be successfully created, updated, and deleted in the database.
-
Installation:
git clone git@github.com:lightoftwelve/ShopEngine-ecomm-backend.git npm install
-
Setting up the Database: Navigate to the
db
folder and run theschema.sql
in your preferred database tool (e.g., MySQL Workbench) to set up the database tables. -
Starting the Application:
node server.js
- Node.js
- Sequelize
- MySQL2
- DotENV
Watch the demo here.
This project was accepted and completed as part of the UofT SCS Coding Boot Camp Online: Fullstack Flex PT course through the University of Toronto. The contents of the seeds folder, config folder, and pieces of other files as marked in the code were created by edX Boot Camps LLC. and has been modified for the purpose of this assignment. Otherwise, this project was independently developed by myself, Victoria Alawi.
- Github: @lightoftwelve
- LinkedIn: @Victoria Alawi
- Website: www.lightoftwelve.com
The license for this project is currently unavailable.