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
- Goals
- Usage
- Installation
- Test
- Problems
- Visualization
- Acknowledgements
- Contributions
- Resources
- License
- Contact
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.
Connects a backend server to a front end e-commerce site.
-
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.
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.
Getting the productroutes.js file to connect was the most difficult. Otherwise everything fell into place from the miniproject.
MOCK UP IMAGES
The Following images show interconnectivity in MySQL
command line screenshot of npm run seed
command line screenshot of npm start
Brent Graves, Fenix Sampson, Gabriel Cavalcante Causin, Dan Rosenbaum and John Dinsmore
- Please submit a fork request and feel free to refractor the code
-
Eloquent JS
-
In class activities, including the mini project for this unit.
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.
GitHub Username: grave019
Link to Github accountgrave019
Email: brent.r.graves82@gmail.com