I built 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.
Install the below packages/modules from node.js by running npm install
:
- sequelize
- mysql2
- express
- In the terminal run
mysql -u root
ormysql -u root -p
(if you have a password) then enterSOURCE db/schema.sql;
thenquit
- To seed the database, from the terminal,
run npm seed
thenrun npm watch
- You can then go to Insomnia and set up your routes to test everything
MIT
Link to my github: https://github.com/Ro-Galvan
Contact me: https://www.linkedin.com/in/rocio-galvan/