hare
v0.4.0 (2018-03-08)
$ git clone [email protected]:clarkdo/hare.git
$ cd hare
# install dependencies
$ yarn # serve with hot reloading at localhost:3000
$ yarn devVaya a http: // localhost: 3000
# configure ESLint as a tool to keep codes clean
$ yarn lint
# use ava as testing framework, mixed with jsdom
$ yarn test # build for production and launch the server
$ yarn build
$ yarn start # generate a static project
$ yarn generate # build and launch the bundle analyze
$ yarn analyze # install pm2 globally
$ yarn global add pm2
# launch development server
$ yarn dev:pm2
# launch production server
$ yarn start:pm2
# Display all processes status
$ pm2 ls
# Show all information about app
$ pm2 show hare
# Display memory and cpu usage of each app
$ pm2 monit
# Display logs
$ pm2 logs
# Stop
$ pm2 stop hare
# Kill and delete
$ pm2 delete hare # build image
$ docker build -t hare-dev -f Dockerfile.dev ./
$ docker run -d -p 8888:3000 -e HOST=0.0.0.0 hare-devVaya a http: // localhost: 8888
# build bundle
$ export NODE_ENV= ' '
$ yarn
$ yarn build
# install production dependencies (remove devDependencies)
$ yarn --prod
# build image
$ docker build -t hare-prod -f Dockerfile ./
$ docker run -d -p 8889:3000 -e HOST=0.0.0.0 hare-prodVaya a http: // localhost: 8889
Documentación vue.js: https://vuejs.org/
Documentación nuxt.js: https://nuxtjs.org
Element-UI Documentation: http://element.eleme.io
Documentación de KOA: https://github.com/koajs/koa