loker-web-api

install package dengan npm

npm install

setup env

MYSQL_POOL_MIN=0
MYSQL_POOL_MAX=50
MYSQL_POOL_IDLE=1
MYSQL_POOL_ACQUIRE=2000000000
MYSQL_POOL_EVICT=2000000000
MYSQL_DIALECT=mysql
MYSQL_DIALECT_REQUEST_TIMEOUT=2000000000
MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_NAME=loker
MYSQL_USER=root
MYSQL_PASS=

runing migration

npx sequelize-cli db:migrate

running seeder

npx sequelize-cli db:seed:all

run app

nodemon