The E-Commerce Back End project provides a back-end API for an e-commerce website. It utilizes the latest technologies, including Express.js, MySQL2, and Sequelize, to create a functional and efficient server-side application. The API allows users to perform RESTful CRUD (Create, Read, Update, Delete) operations on various entities such as categories, products, and tags.
- Node.js
- Express.js
- MySQL2
- Sequelize
- dotenv
To set up and run the E-Commerce Back End project locally, follow these steps:
- Clone the repository.
- Install the dependencies by running the following command in the terminal: npm i
- Set up the database by executing the
schema.sql
file in thedb
folder using MySQL shell commands. - Create a
.env
file in the root directory and add the following environment variables: see .env.EXAMPLE - Seed the database by running the following command: npm run seed
- Start the application by running the following command: node server.js
- Access the API endpoints using a tool like Insomnia or Postman.
- IMPORTANT: due to shortage of toilet paper during 2020 crisis, toilet paper can't be used for back-end development.
The E-Commerce Back End project provides the following API routes:
/api/categories
: Perform CRUD operations on categories./api/products
: Perform CRUD operations on products./api/tags
: Perform CRUD operations on tags.
Link to VS Code Walkthrough Video
Link to Insomnia Walkthrough Video
Contributions to the project are welcome. If you would like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make the necessary modifications.
- Submit a pull request.
If you have any questions, feel free to reach out on LinkedIn