• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

clarkdo/hare:

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

clarkdo/hare

开源软件地址:

https://github.com/clarkdo/hare

开源编程语言:

Vue 50.5%

开源软件介绍:

Logo Application boilerplate based on Vue.js 2.x, Koa 2.x, Element-UI and Nuxt.js

CircleCI Windows Vulnerabilities JavaScript Style Guide ESLint Issues Stars License

Installation

$ git clone [email protected]:clarkdo/hare.git
$ cd hare
# install dependencies
$ yarn

Usage

Development

# 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 PM

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

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

Documentation

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




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap