$ yarn install
Environment file example.
# .env
VERSION=1.0.0
NODE_ENV=development
PORT=3000
SECRET=
# Database
DB_HOST=127.0.0.1
DB_PORT=3306
DB_NAME=db
DB_USER=root
DB_PASS=1234
$ yarn dev
$ yarn test
or
yarn standard --fix
https://pjchender.dev/npm/npm-jest/
yarn jest
Jest config
"jest": {
"verbose": true,
"collectCoverage": true
},
$ mysql
mysql> ALTER USER 'user-name'@'localhost' IDENTIFIED BY 'NEW_USER_PASSWORD';
mysql> CREATE DATABASE menagerie;
mysql> USE menagerie;