Skip to content

Educational Repo to practice the basics of connecting a MySQL database to an Express server

Notifications You must be signed in to change notification settings

parkderick/mysql-sequelize-review

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mysql-sequelize-review

setup

  • npm install, npm start

Step 1

  • In the MySQL shell, create a database called Welp
  • Create a connection to database in database/index.js

Step 2

  • Create a Schema to describe our restaurant table, with at least 2 columns
  • Run Schema file in terminal

Step 3

  • Create a seeding function in database/seed.js to fill your table with at least 5 restaurants
  • Run your seed file

Step 4

  • Fill out the dbHelpers in database/helpers.js
  • Connect the helpers to your controllers
  • Fill out the controllers
  • Test via Postman

Step 5

  • Refactor your model/helpers to use Sequelize

About

Educational Repo to practice the basics of connecting a MySQL database to an Express server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%