/nuxt-full-stack-template

Nuxt full stack template for creating web app easily.

Primary LanguageJavaScript

nuxt-full-stack-template

Nuxt full stack template for creating web app easily. demo

About

This template includes as below.

Nuxt.js

Express.js

Process Management

Requirements

MySQL Docker

This sample app connects MySQL on localhost. mysql57-dokcer is prepared for this template application. By default, required table will be created automatically.

PM2

To run this app by pm2, it requires pm2 on your environment. PM2 enables the cluster mode.

pm2-intercom

To use log4-js on cluster mode and to output logfile properly, pm2-intercom is required.

Build Setup

# install dependencies
$ yarn install

# serve with hot reload at localhost:3000
$ yarn dev

# build for production and launch server
$ yarn build
$ yarn start

Run Cluster Mode

$ pm2 startOrRestart ecosystem.config.js --env production