This is the environment I developed the project
- node 10.18.1
- yarn 1.21.1
- mysql 5.7
yarn install
DATABASE_HOST='127.0.0.1'
DATABASE_USER='nodeexam'
DATABASE_PASSWORD='nodeexam'
DATABASE_NAME='nodeexam'
CREATE SCHEMA `nodeexam` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
node install_db.js
node app.js