Arranging a date for international video chat
Just 3 Steps
- Create a schedule
- Share the URL
- Answer your available dates
$ git clone https://github.com/kenzan8000/chosei-sama.git
$ cd chosei-sama
$ bundle install
$ vim config/auth.yml
development:
omniauth:
enabled: true
allow_single_sign_on: false
block_auto_created_users: true
providers:
{
name: 'facebook',
app_id: 'YOUR_FACEBOOK_KEY',
app_secret: 'YOUR_FACEBOOK_SECRET',
scope: 'public_profile,email,user_friends'
}
production:
omniauth:
enabled: true
allow_single_sign_on: false
providers:
{
name: 'facebook',
scope: 'public_profile,email,user_friends'
}
$ bundle exec heroku create YOUR_APP
$ heroku addons:add heroku-postgresql
$ heroku config
=== herokuapp Config Vars
DATABASE_URL: postgres://〜
HEROKU_POSTGRESQL_(COLOR)_URL: postgres://〜
....
$ heroku pg:promote HEROKU_POSTGRESQL_(COLOR)_URL
Create Facebook app on https://developers.facebook.com/
$ heroku config:add FACEBOOK_KEY=YOUR_FACEBOOK_KEY
$ heroku config:add FACEBOOK_SECRET=YOUR_FACEBOOK_SECRET
$ rake build server
[2015-04-12 09:58:41] INFO WEBrick 1.3.1
[2015-04-12 09:58:41] INFO ruby 2.1.2 (2014-05-08) [x86_64-darwin13.0]
== Sinatra (v1.4.6) has taken the stage on 4567 for development with backup from WEBrick
[2015-04-12 09:58:41] INFO WEBrick::HTTPServer#start: pid=10994 port=4567
....
$ rake deploy