This application is developed as a backend for an e-commerce site. The application uses Express.js for the server, MySQL for the database and Sequelize as the ORM to run MySQL models and queries. The user can view various products, their categories, tags and edit them. Insomnia was used to run various API routes. The database is accessed and updated by RESTful API routes and then joined through Sequelize queries.
Creating the database.
Creating tables.
Running the server.
Clone my GitHub repo first and run the following command at the root of your project for creating the database and you run various API routes in the Insomnia.
source schema.sql
npm run seed
npm start
Use this Walkthrough video as a guide for using this application.
Ideas to improve this application are welcome, email me please.
To install necessary dependencies, run the following command:
npm i mysql2
npm i express
npm i sequelize
Tests will run in the Insomnia.
This project is licensed under the MIT license.
If you have any questions about the repo, open an issue or contact me directly at [email protected]. You can find more of my work at GitHub.