Giter VIP home page Giter VIP logo

hare's Introduction

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

hare's People

Contributors

clarkdo avatar dependabot-support avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.