Git Product home page Git Product logo

road2koa's Introduction

road2koa -- Koa 2 的自製範例 (非官方)

安裝

由於這是 koa2 的新版範例,因此請務必先安裝最新版本的 node.js ,至少要大於 7.6 版!

$ git clone https://github.com/ccckmit/road2koa.git
$ cd road2koa
$ npm install

文件

koa 的 @2 官方文件位於 http://koajs.com/

koa-router 的 @2 新版說明位於 https://github.com/alexmingoia/koa-router/tree/master/

關於 async/await 的用法請參考 JavaScript 好用的 async 異步函數!

關於 koa@2 的用法請參考 Koa 2 起手式!

關於檔案存取的 mz 套件請參考 https://github.com/normalize/mz

本文範例很多修改自 Koa example, 但這些範例是 Koa 1 的版本,我們將它修改為 koa 2。

學習

請按照課程編號, (01-hello, 02-pathQuery, ..) 一個一個執行範例。

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.