All Projects → SilenceHVK → Wechatbynode

SilenceHVK / Wechatbynode

Use the Node.js development WeChat(使用Node.js 开发微信公众号)【 博客地址:https://cnodejs.org/user/SilenceHVK 】

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Wechatbynode

express-boilerplate
ExpressJS boilerplate with Socket.IO, Mongoose for scalable projects.
Stars: ✭ 83 (-87.07%)
Mutual labels:  node-js, express-js
MERN-BUS-APP
This is a MFRP (My first Real Project) assigned to me during my internship at Cognizant. Made with MERN Stack technology.
Stars: ✭ 92 (-85.67%)
Mutual labels:  node-js, express-js
ExpressJS-SocketIO-Boilerplate
📦 Simple Express.js & Socket.io Boilerplate
Stars: ✭ 31 (-95.17%)
Mutual labels:  node-js, express-js
mern-ecommerce
MERN Stack ecommerce site
Stars: ✭ 122 (-81%)
Mutual labels:  node-js, express-js
node-rest-api-scaffold
This project is an initial NodeJS Rest API scaffold for developers
Stars: ✭ 24 (-96.26%)
Mutual labels:  node-js, express-js
babyfoot
Simple CQRS/ES Node+Express+TypeScript REST API
Stars: ✭ 14 (-97.82%)
Mutual labels:  node-js, express-js
Backend-NodeJS-Golang-Interview QA
A collection of Node JS and Golang Backend interview questions please feel free to fork and contribute to this repository
Stars: ✭ 122 (-81%)
Mutual labels:  node-js, express-js
teaching-nodejs-expressjs-framework-spring-2019-2020
Complete Node-Express Application
Stars: ✭ 16 (-97.51%)
Mutual labels:  node-js, express-js
node-express-mongo-passport-jwt-typescript
A Node.js back end web application with REST API, user JWT authentication and MongoDB data storage using TypeScript
Stars: ✭ 51 (-92.06%)
Mutual labels:  node-js, express-js
express-mvc-generator
Express' Model View Controller Application Generator.
Stars: ✭ 46 (-92.83%)
Mutual labels:  node-js, express-js
express-file-upload
Node.js Express Upload/Download File Rest APIs example with Multer
Stars: ✭ 64 (-90.03%)
Mutual labels:  node-js, express-js
Practicalnode
Practical Node.js, 1st and 2nd Editions [Apress] 📓
Stars: ✭ 3,694 (+475.39%)
Mutual labels:  express-js, node-js
Registration-and-Login-using-MERN-stack
Simple Registration and Login component with MERN stack
Stars: ✭ 210 (-67.29%)
Mutual labels:  node-js, express-js
BotBlock.org
BotBlock - The List of Discord Bot Lists and Services
Stars: ✭ 29 (-95.48%)
Mutual labels:  node-js, express-js
content-moderation-image-api
An NSFW Image Classification REST API for effortless Content Moderation built with Node.js, Tensorflow, and Parse Server
Stars: ✭ 50 (-92.21%)
Mutual labels:  node-js, express-js
reddit-clone
A reddit clone written using node.js / express.js / mongodb / passport.js. https://seiya-beddit.herokuapp.com/
Stars: ✭ 84 (-86.92%)
Mutual labels:  node-js, express-js
HIMS
Hospital Information Management System create using Node Js
Stars: ✭ 41 (-93.61%)
Mutual labels:  node-js, express-js
Middleman-NPM
Middleman is an intuitive Express performance monitor for all your middleware 🎉
Stars: ✭ 13 (-97.98%)
Mutual labels:  node-js, express-js
TODO-List-Tech-Module
TODO List (in C#, Java, JS and PHP) - Exam Preparation for the Tech Module @ SoftUni (August 2017)
Stars: ✭ 13 (-97.98%)
Mutual labels:  node-js, express-js
roboserver
Control OpenComputers robots without writing any code!
Stars: ✭ 52 (-91.9%)
Mutual labels:  node-js, express-js

Node.js 微信公众号开发 git start git fork

node version npm version express version xml2js

项目结构

.
├── README.md           
├── package.json               // 构建项目与工具包依赖
├── config.json               // 项目配置文件
├── app.js                   // 项目启动入口
├── wechat                 // 微信模块文件夹
│   ├── access_token.json // accessToken存储文件
│   ├── menus.json       // 菜单配置文件
│   ├── msg.js          // 消息模块
│   └── wechat.js      // 微信模块

目标功能

  • [x] 微信接入功能
  • [x] access_token的获取、存储及更新
  • [x] 自定义微信菜单
  • [x] 消息被动回复
  • [x] 消息加解密

构建项目

  1. 将项目 clone 到本地

    git clone [email protected]:SilenceHVK/wechatByNode.git
    
  2. 打开项目配置文件 config.json

    config.json

    修改文件的 token、appID 以及 appScrect 配置参数。其中 token、appID 与 appScrect 两个参数位于 微信公众平台 左侧菜单的基本配置中 基本配置

    开发这ID 与秘钥

  3. 进入 wechatByNode 文件并运行 app.js

    cd wechatByNode && node app.js  // Server runs at localhost:3000
    
  4. 将服务地址映射外网,或部署到服务器。这里我使用内网穿透演示。

    • 打开花生壳的软件,点击内网穿透 内网穿透

    • 点击添加映射 点击添加映射

    • 配置映射 配置映射 由于微信只接受80端口。 映射类型必须选择80端口,内网主机就是部署Node.js项目的电脑 IP 地址

  5. 接入认证

    接入认证

    点击提交。提示提交成功,接入认证完成 接入认证提交

  6. 扫描微信二维码,关注公众号,就可以开始玩了

    微信公众号

    微信自定义菜单

    微信接收普通消息

    微信接收普通消息

    微信接收事件消息

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].