Skip to content

mason66xue/ORM-E-Commerce-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ORM-E-Commerce-Backend

Description

This application is a backend application servicing front end by using MySQL with NODE.js, Sequelize, Express and dotenv. The application will help users to manage data under Category, Tag and Product. Because of the application is build on the relationship of these three. It is user friendly for users to search by inplementing certain standards. This e-commerce application is developed using starter code to create a back-end application for an e-commerce site that uses the command line interface (CLI) and object-relational mapping for various methods of data manipulation, storage, and retrieval when using HTTP methods with a RESTUL API. It utlises Express.js API which uses Sequelize to interact with a MySQL database in order to build a back end for a shop's website.

Installation/Usage

  • npm install command will install javascript dependencies
  • npm i
  • npm run seeds
  • npm start

Demo

The folowing should be shown when tesing with Insomnia

The following animation shows the application's GET routes to return all categories, all products, and all tags being tested in Insomnia:

In Insomnia, the user tests “GET tags,” “GET Categories,” and “GET All Products.”.

The following animation shows the application's GET routes to return a single category, a single product, and a single tag being tested in Insomnia:

In Insomnia, the user tests “GET tag by id,” “GET Category by ID,” and “GET One Product.”

The following animation shows the application's POST, PUT, and DELETE routes for categories being tested in Insomnia:

In Insomnia, the user tests “DELETE Category by ID,” “CREATE Category,” and “UPDATE Category.”

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published