xi4oh4o / foursq2weibo

Synchronous 4sq checkin to weibo

Home Page:http://foursqtoweibo.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

foursq2weibo

同步4sq签到至微博

程序由Sinatra编写 数据可保存于Postgres或SQLite3

如何运行

  1. 重命名 config-example.ymlconfig.yml 并填入申请的API信息
  2. 执行 bundle install 安装依赖库
  3. 执行rake db:migrate 建立表结构
  4. 执行 ruby app.rb 访问 http://localhost:4567

回调地址

  • Foursquare: http://your_host.com/redirect_uri
  • Weibo: http://your_host.com/wei_redirect
  • Foursquare Push: https://your_host.com/handle_push

如何部署在Heroku

  1. cd foursq2weibo
  2. heroku git:remote -a foursqtoweibo
  3. git push -u heroku master
  4. heroku addons:add heroku-postgresql:hobby-dev
  5. heroku rake db:migrate

About

Synchronous 4sq checkin to weibo

http://foursqtoweibo.herokuapp.com

License:The Unlicense


Languages

Language:Ruby 96.4%Language:CSS 3.6%