🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

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框架 主要集成了文件处理 微信处理 日志处理 常用处理函数

latest
npmnpm
Version
2.0.4
Version published
Weekly downloads
2
-94.44%
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 25 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts