$ git clone [email protected]:clarkdo/hare.git
$ cd hare
# install dependencies
$ yarn install
# serve with hot reloading at localhost:3000
$ yarn run dev
Go to http://localhost:3000
# configure ESLint as a tool to keep codes clean
$ yarn run lint
# use ava as testing framework, mixed with jsdom
$ yarn run test
# build for production and launch the server
$ yarn run build
$ yarn run start
# generate a static project
$ yarn run generate
# build and launch the bundle analyze
$ yarn run analyze
Further more features refer: PM2
# 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 --env HOST=0.0.0.0 hare-dev
Go to http://localhost:8888
Vue.js documentation: https://vuejs.org/
Nuxt.js documentation: https://nuxtjs.org
Element-UI documentation: http://element.eleme.io
Koa documentation: https://github.com/koajs/koa