Git Product home page Git Product logo

qcwcop's Introduction

QCWcop

用koa2.x进行微信公众平台开发,写了一整套开发框架

use

使用方法很简单:
1.根目录下的config.js中填写你公众平台里边获取的appId、appSecret和token
2.加载三方包

npm i

3.一个云服务器,具体的配置在我的CSDN博客里有:阿里云配置

desc:

主要模块介绍:

1.access_token_management

负责管理access_token如果请求的时候过期了,并且保存到本地access_token_file文件夹下

2.controller

中间件,主要用作控制流程,写逻辑,封装好在入口app.js中调用

3.model

为流程提供数据,主要是调用微信接口,返回数据,里边的调用方法都返回了Promise,方便在controller中async/await调用

4.view_json

eg:setMenu之类的发送给微信的样式json

5.utils

主要是接收xml的解析和返回xml的包装工具

qcwcop's People

Contributors

canwhite avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.