GithubHelp home page GithubHelp logo

weapp-one's Introduction

一ONE小程序

开源版本:v2
https://mssnn.cn

微信扫一扫体验

简介

开源的第三方一个图文小程序,每天为你推送一张精美的照片和文字。
复杂的世界里,一个就够了。

配置域名

小程序需要连接后端数据API+vPush推送API域名,所以需要在微信公众平台设置request域名。
首先,你需要开通vpush推送平台,请输入:https://你的小程序appId.mssnn.cn进行注册登陆古人云小程序控制台。
然后,进入微信公众平台,进入到开发->开发设置,设置域名,request里边填入如下配置:

配置小程序

小程序,只需要你在app.js里配置好vpush即可。 很简单!点击app.js进行编辑,然后在vPush的初始化操作里,输入你的小程序appId即可!

定时推送

进入古人云小程序开发平台,然后创建任务脚本(nodejs),模块添加superagent,代码复制server_push.js文件内容,然后时根据情况去设置啦,保持默认就是每天早上09:10进行推送。

首先,创建一个推送API:

然后,在任务脚本里,添加模块:

接着,粘贴代码:

注意: 这里,我们需要把代码里的推送API地址+密钥,改成我们上边创建好的推送API

最后,配置时间:

创建完毕后,点击运行按钮,即可实现每天自动推送啦!!

其他问题

目前分享功能暂没完善,所以你可以参与项目一起开发。
推送平台来自于:古人云小程序

weapp-one's People

Watchers

James Cloos avatar hero1990 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.