在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:clarkdo/hare开源软件地址:https://github.com/clarkdo/hare开源编程语言:Vue 50.5%开源软件介绍:Application boilerplate based on Vue.js 2.x, Koa 2.x, Element-UI and Nuxt.jsInstallation$ git clone [email protected]:clarkdo/hare.git
$ cd hare
# install dependencies
$ yarn UsageDevelopment# serve with hot reloading at localhost:3000
$ yarn dev Go to http://localhost:3000 Testing# configure ESLint as a tool to keep codes clean
$ yarn lint
# use ava as testing framework, mixed with jsdom
$ yarn test Production# build for production and launch the server
$ yarn build
$ yarn start Generate# generate a static project
$ yarn generate Analyze# build and launch the bundle analyze
$ yarn analyze Use PMPM2Further more features refer:# 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 Docker Dev# build image
$ docker build -t hare-dev -f Dockerfile.dev ./
$ docker run -d -p 8888:3000 -e HOST=0.0.0.0 hare-dev Go to http://localhost:8888 Docker Production# 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-prod Go to http://localhost:8889 DocumentationVue.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 |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论