New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

jane-frame

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jane-frame

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

npmnpm
Version
1.1.6
Version published
Weekly downloads
25
177.78%
Maintainers
1
Weekly downloads
 
Created
Source

基于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;

FAQs

Package last updated on 15 Nov 2019

Related posts