GithubHelp home page GithubHelp logo

calvix-xu / koa2-webpack-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chenbin92/koa2-webpack-boilerplate

0.0 1.0 0.0 100 KB

A simple koa2 boilerplate based on webpack3

JavaScript 82.45% CSS 15.10% HTML 2.44%

koa2-webpack-boilerplate's Introduction

koa2 webpack boilerplate

A simple koa2 boilerplate based on webpack3

Features

This is a koa2 starter boilerplate app I've put together using the following technologies:

koa v2

webpack(v3)

ES2015+

Babel

SCSS

Hot reload

Eslint

pre-commit

Usage

Step 1. Make sure that you have Node.js v6 or newer and npm installed on your development machine.

  • node ^6.0.0
  • npm ^5.0.0

Step 2. Clone this repository

$ git clone [email protected]:chenbin92/koa2-webpack-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 webpack boilerplate commit history then you can do:

$ git clone --depth=1 [email protected]:chenbin92/koa2-webpack-boilerplate.git MyApp

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

Step 3. Compile and launch your app by running:

$ npm run start:dev  # Compiles the app and opens it in a browser with "hot reload"

Now the app should be running at http://0.0.0.0:3000/

Build

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

$ npm run build

Scripts

npm <script> Description
star:dev Serves your app at localhost:3000
star:prod Serves your app at localhost:3000
build Builds the application
lint Lints the project for potential errors

Wiki

koa2-webpack-boilerplate's People

Contributors

chenbin92 avatar

Watchers

 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.