/nodeck

Another nodejs web framework based on koa.

Primary LanguageJavaScriptMIT LicenseMIT

nodeck npm version

nodeck is based on koajs to provide better Web MVC development experience.

Getting Started

Requirements

  • Mac OS X, Windows, or Linux
  • Node.js v5.0 or newer
  • npm v3.3 or newer (new to npm?)

Install

$ npm install nodeck-cli -g
$ ndeck init myapp && cd myapp
$ npm install
$ npm run dev

Usage

const Nodeck = require('nodeck');
const PORT = process.env.PORT || 4567;

const app = new Nodeck();

app.start(PORT).then(() => {
    console.log(`Server start and listen at ${PORT}`);
});