This template includes as below.
- Nuxt.js
- SSR
- Auth Route Sample
- Express.js
- MySQL Connection
- Session Management
- Logger
- Config file
- Sample APIs
- Error Handler
This sample app connects MySQL on localhost. mysql57-dokcer is prepared for this template application. By default, required table will be created automatically.
To run this app by pm2, it requires pm2
on your environment.
PM2
enables the cluster mode.
To use log4-js
on cluster mode and to output logfile properly,
pm2-intercom is required.
# install dependencies
$ yarn install
# serve with hot reload at localhost:3000
$ yarn dev
# build for production and launch server
$ yarn build
$ yarn start
$ pm2 startOrRestart ecosystem.config.js --env production