/learn-orm-express

Learn ORM Express

Primary LanguageJavaScriptMIT LicenseMIT

Learn ORM and Express

Setup database

  1. Install MySQL
  2. Create user
  3. Create database with these names:
    • todo_dev
    • todo_test
    • todo_production

Setup app

Install local dependencies:

yarn

Install global dependencies:

yarn global add sequelize-cli sequelize mysql2 nodemon

Migrate tables and seed initial data:

sequelize db:migrate
sequelize db:seed:all

Run the API server:

yarn start

or

yarn dev

Access API server by opening http://localhost:8000