For this project, I was tasked to build the back end for an e-commerce site by modifying starter code. I configured a working Express.js API to use Sequelize to interact with a MySQL database in order to accomplish this goal. This challenge was especially difficult for me because my weakness so far in the boot camp has been creating and testing routes with Insomnia. The application isn't perfect yet, but it does fulfill the User Story and the challenge requirements.
-
Clone the project repository to your local machine.
-
Replace all credentials in the .env file with your own respective information (besides the DB_NAME).
-
In the terminal, navigate to the project directory and run npm install to install the required dependencies.
-
In the terminal, log into MySQL using
mysql -u [your username here] - p
and type in your password. -
Source the schema.sql using
SOURCE db/schema.sql
-
Type
exit
and press enter. -
Back in the terminal, run
npm run seed
. -
Run
npm run watch
-
Done!
If these instructions are unclear, click on the VHS tape below to watch the tutorial video:
If you do not own a VCR player, or cannot locate one, then we apologize for the inconvenience. E-Commerce wasn't all it's cracked up to be if I'm gonna be honest. We're really pinchin' pennies over here. Couldn't afford a storage unit. There's a pile of loose button-downs and jeans on a lawn chair next to my bed. Every morning I wake up and look at that pile. Knowing full well I haven't sold a damn thing. Ha, I wouldn't buy them. I really wouldn't. But here we are. $80,000 later. I took out a mortgage for this. And for what? For what? One minute you're cutting the red ribbon. The next you're taking the nice plates out of your kitchen cabinet to hide another shipment of cargo shorts. Maybe this is what Elizabeth was talking about when she left. Maybe she was right.
In other news, we're currently hiring software developers to modernize our business technologies!
Interested applicants can apply here.
That was a joke.
Or was it?
It was. Sorry.
...?
This project has been released under the MIT license.
- Github: @tolivercrisp
- Email: [email protected]