2.0.4 • Published 4 years ago

jane-frame v2.0.4

Weekly downloads
10
License
MIT
Repository
-
Last release
4 years ago

基于Koa构建的API框架 主要集成了文件处理 微信处理 日志处理 常用处理函数

安装

JF 基于Koa 要求 node v7.6.0 或更高版本 ES2015 与异步的支持

$ npm i jane-frame

启动FK框架

const JaneFrame = require('jane-frame')

const app = new JaneFrame();

app.bootstrap();

Config

处理配置文件 在项目更目录下新建一个config.js 内容如下

const config = {
    base: {
        port: "8080"
    },
    mongo: {
        uri: ""
    },
    wxapp: {
        // 微信小程序 App ID
        appid: '',
        // 微信小程序 App Secret
        appSecret: '',
        //公众号配置
        config: {},
        //商户身份ID 
        mch_id: '',
        //商户支付密钥Key
        partnerKey: '',
        ssl_cer: '',
        ssl_key: ''
    },
}
module.exports = config;