The challenge was to build the back end for an e-commerce site.
I took a working Express.js API and configured it to use Sequelize to interact with a MySQL database.
Starter code from here
[Usage Video] walks through setup and API CRUD testing
Need a new usage video
The command line code that I use for setup is as follows...
-
Start mysql by running
mysql -u root -p
then enter your password -
Run
source db/schema.sql
to create the database thenexit
-
Run
npm run seed
to seed the database with test data -
Run
npm start
then head over to Insomnia