caspercasanova / my-sql-review

Review lecture material for HRLA students

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mysql-review

setup

npm install
npm start

Documentation

Step 1

  1. Create a database called ball
  2. Connect to the database in database/index.js

Step 2

  1. Create a table called tennis in your schema database/schema.sql
  2. Run the schema in the terminal

Step 3

  1. Create a seeding function in database/seed.js to fill your table
  2. Run your seeding function

Step 4

  1. Fill out the model functions in database/models.js
  2. Connect the models to your controllers
  3. Fill out the controllers
  4. Test via Postman

Optional

  • Refactor your model/controller to use Sequelize

Special Thanks

About

Review lecture material for HRLA students


Languages

Language:JavaScript 100.0%