wechat starter
1.0.0
Plantilla para desarrollar wechat en rieles.
Procesar mensajes con Eric-Guo/wechat
Biblioteca de interfaz de usuario usando weui con weui-rails
Paga con jasl/wx_pay
OAuth2 con skinnyworm/omniauth-wechat-oauth2
Cuenta de servicio patrocinada por Le Wagon Shanghai
Requisitos
PostgreSQL
Configure "服务器地址" como http://your-domain.com/wechat
Configure "测试授权目录" como http://your-domain.com/
Instalar
Crea tu nuevo proyecto y agrega este repositorio como plantilla
mkdir your_app
cd your_app
git init
git remote add template https://github.com/Eric-Guo/wechat-starter.git
git fetch template
git checkout -b master template/master
bundle install
rake db:create
rake db:migrate
Cree config/application.yml
y configure la siguiente información:
wechat_app_id : " AppID "
wechat_secret : " AppSecret "
wechat_token : " Token "
wechat_encoding_aes_key : " EncodingAESKey "
wechat_trusted_domain_fullname : " http://your_dev.proxy.qqbrowser.cc "
# following is optional if you don't need wechat pay
wechat_pay_mch_id : " merchant id "
wechat_pay_api_key : " 32 bits api key configured in pay.weixin.qq.com "
wechat_pay_notify_url : " url to accept pay result notification "
Iniciar servidor
puma -C config/puma.rb
Depende de Rails.env
elegir el menú de la carpeta de configuración.
Por ejemplo, si Rails.env == production
, entonces se elige config/menu_production.yaml
.
# create menu
rake wechat:menu_create
# show menu
rake wechat:menu