Giter Club home page Giter Club logo

koa2-vue-boilerplate's Introduction

Koa2-vue-boilerplate

An admin application template using koa2 and vue.

this boilerplate clone built with vuejs-templates, based on vue-element-admin

Environments

Make sure that you have Node.js v6 or newer and npm installed on your development machine. Because it will be better

  • node ^6.0.0
  • npm ^5.0.0

Clone this repository

$ git clone https://github.com/Cherish-xzw/koa2-vue-boilerplate.git MyApp
$ cd MyApp
$ npm install        # Install project dependencies listed in package.json

If you just want to start a new project without the koa2 boilerplate commit history then you can do:

$ git clone --depth=1 https://github.com/Cherish-xzw/koa2-vue-boilerplate.git MyApp

The depth=1 tells git to only pull down one commit worth of historical data.

In development mode

Compile and launch your app by running:

# Compiles the app and opens it in a browser with "hot reload"
# running at http://0.0.0.0:3000

$ npm run dev

# Open the backend API server
# running at http://0.0.0.0:4000

$ npm run server

Or start frontend and backend together

# Start frontent and backend concurrently
$ npm start

In porduction mode

A build script to bundle JS, CSS, and Images for production, with sourcemaps.

$ npm run build

Release

release script can bundle everything we need to publish our code to productiion environment.

$ npm run release

Note: This is script can only running at *nix-like commmand line.

Problem

Can't install node-sass ?

put this lines in you ~/.npmrc file and npm install again.

sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
phantomjs_cdnurl=https://npm.taobao.org/mirrors/phantomjs/
electron_mirror=https://npm.taobao.org/mirrors/electron/

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.