Node / Express / Vue / MySQL
npm install
Install NVM. It's easiest with Homebrew:
brew install nvm
Then install and use the version of Node that this application uses:
nvm install 12.22.8
nvm use 12.22.8
A .env
file in the root project directory will include necessary environment variables for local development.
touch .env
Example file contents (you will need to retrieve the unspecified values from the repository owner):
SESSION_SECRET=
MYSQL_DB=
MYSQL_USER=
MYSQL_PASSWORD=
MYSQL_HOST=
MYSQL_PORT=3306
NODE_ENV=development
APP_PORT=3000
HMR_ENABLED=true
LOG_LEVEL=INFO
npm run watch
npm run lint
ESLint with autofix flag
npm run lint:fix
npm run stylelint
Stylelint with autofix flag
npm run stylelint:fix
npm run test:unit
npm run test:clear
npm install --production
touch /tmp/restart.txt