grave019 / E-Commerce-Back-End

Object Relational Mapping

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ecommerce Backend Application

MIT License Badge

Description

Building a backend server to a e-commerce site by modifying starter code. Utilizing, Express, MySQL, JSON, Sequalize, Insomnia are all used in demonstration.

Click the link below to visit my deployed page.

  • PLEASE NOTE 2 VIDEOS SECOND DEMONSTRATES FUNCTIONALITY OF DELETE

https://www.youtube.com/watch?v=FHILX8-0Arc

https://youtu.be/cRWWq7Ghyec

Table of Contents

Goals

To connect a backend to working server to a front end application. This required utilizing GET, POST, PUT, DELETE, Routes to be utilized in Insomnia. Heading into this project I had difficulties working with Insomnia. This application helped me learn a tool that I wasn't very comfortable with before hand. I definitely feel like I accomplished this goal.

Usage

Connects a backend server to a front end e-commerce site.

Installation

  • First, install the dependencies by running "npm i".

  • Second, open your my sql and enter schema with a live host and create a database to to connect to.

  • Third, "npm run seed" after the .env file is utilized with a proper username and password. A Screenshot below shows successful running of the command.

  • Fourth, enter npm start. This will activate the local host to be manipulated at localhost:3001.

Test

No test are written for this application. However, eventually a npm audit fix may be needed to run in case of vulnerabilities in the dependecies in the package lock JSON due to newer versions being released. But as of this time there are no vulnerabilities. However, this is not a anticipated outcome from the installation process.

Problems

Getting the productroutes.js file to connect was the most difficult. Otherwise everything fell into place from the miniproject.

Visualization

MOCK UP IMAGES

mockup 1 mockup 2 mockup 3 The Following images show interconnectivity in MySQL category product-tag product tag command line screenshot of npm run seed npm run seed command line screenshot of npm start npm start

Acknowledgements

Brent Graves, Fenix Sampson, Gabriel Cavalcante Causin, Dan Rosenbaum and John Dinsmore

Contributions

  • Please submit a fork request and feel free to refractor the code

Resources

  • Eloquent JS

  • In class activities, including the mini project for this unit.

License

Copyright 2021 Brent Graves

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Contact

GitHub Username: grave019

Link to Github accountgrave019

Email: brent.r.graves82@gmail.com

About

Object Relational Mapping

License:MIT License


Languages

Language:JavaScript 100.0%