Skip to content

A back-end application that focuses on object relational mapping

License

Notifications You must be signed in to change notification settings

TomDoyleGithub/eCommerce-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eCommerce-Server

A back-end application that focus on object relational mapping

How does it work?

This is a complete back-end application that is able to manipulate database information from a local server. The code allows to view this data is JSON format which could later be used for a full-stack application

Video Demo: Video Demo

Why make this?

The focus of this project was to create a mini eCommerce database which simulates an online store without doing much front-end.

My goal

I wanted to focus on using more API's such as sequelize instead of writing raw SQL. I also managed to protect my credentials using the dotenv package from NPM.

Running the application

First you will have to navigate to the database directory which will contain the schema information which can be run in raw SQL. After creating the database, you will need to add a '.env' file and install all the NPM packages stated in the package.json file. Then open up the terminal and run 'npm start' which will initiate the server and create the tables. You can seed the database by running 'npm run seed' in the terminal. After the server is up and running will can use your insomnia to edit the database information.

Tables

This is how your databse information should look like after the intial setup

Category

Tables

Product

Tables

Tag

Tables

Product Tag

Tables

Insomnia

This is an example of some of the requests
Insomnia

End note

I hope you enjoyed going through my application and hopefully you will be able edit your own eCommerce Server 👍

About

A back-end application that focuses on object relational mapping

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published