/node-template-api-mysql-setup

Starter template for node api development mysql setup

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

node-template-api-mysql-setup

  npm install

Start the application and open localhost:8081/example

  npm start

Generate a model

  yarn run gmodel --name <Model Name> --attributes name:string

Generate a migration

  yarn run gmigration --name <Migration Name> --attributes name:string

Generate a seeder

  yarn run gseeder --name <Seeder Name> --attributes name:string

Migrate pending migrations

  yarn run migrate

Seed peding seeders

  yarn run seed