@i-orz/egg-framework

0.0.36 • Public • Published

eht

simple.

框架

中间件

插件

  • cors: 暴露 Authorization 头部

配置

  • 监听 3000 端口
  • 依赖本地服务还是 A1 基地的服务: config.developServiceHost = process.env.local ? 'localhost' : '192.168.1.76'
  • 生产环境下会将日志放置到 /var/log/app/${appInfo.name}

QuickStart

$ npm install
$ npm test

publish your framework to npm, then change app's dependencies:

// {app_root}/index.js
require('eht').startCluster({
  baseDir: __dirname,
  // port: 7001, // default to 7001
});

Readme

Keywords

Package Sidebar

Install

npm i @i-orz/egg-framework

Weekly Downloads

264

Version

0.0.36

License

MIT

Unpacked Size

277 kB

Total Files

17

Last publish

Collaborators

  • kayorl