corie
a generator for koa2
Last updated 9 days ago by fengxinming .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install corie 
SYNC missed versions from official npm registry.

Corie

Born to build better suitable frameworks and apps with Node.js & Koa

Table of contents

Installation

npm i --save corie corie-configuration

Usage

'use strict';

const Corie = require('corie');
const Config = require('corie-configuration');

// 环境变量
const env = process.env.NODE_ENV || 'development';
const config = new Config({
  env,
  conf: './conf'
});

const corie = new Corie({
  // 服务相关配置
  server: config.get('server'),
  // pug模板需要的全局静态值
  locals: config.get('locals')
});

// 加载中间件
corie.useMiddleware();

module.exports = corie;

Examples

Follow below links to learn more

Current Tags

  • 2.0.6                                ...           latest (9 days ago)

8 Versions

  • 2.0.6                                ...           9 days ago
  • 2.0.5                                ...           11 days ago
  • 2.0.1                                ...           14 days ago
  • 1.0.4                                ...           5 months ago
  • 1.0.3                                ...           5 months ago
  • 1.0.2                                ...           6 months ago
  • 1.0.1                                ...           6 months ago
  • 1.0.0                                ...           6 months ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 61
Last Day 1
Last Week 9
Last Month 13
Dependencies (16)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |