Skip to content

kenzan8000/chosei-sama

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

時差調整さま

Introduction

Arranging a date for international video chat

How to use

Just 3 Steps

  1. Create a schedule
  2. Share the URL
  3. Answer your available dates

Installation

$ git clone https://github.com/kenzan8000/chosei-sama.git
$ cd chosei-sama
$ bundle install

Database setting

$ 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'
    }

Create app on Heroku

$ bundle exec heroku create YOUR_APP

PostgreSQL setting

$ 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

Facebook setting

Create Facebook app on https://developers.facebook.com/

$ heroku config:add FACEBOOK_KEY=YOUR_FACEBOOK_KEY
$ heroku config:add FACEBOOK_SECRET=YOUR_FACEBOOK_SECRET

Run on local server

$ 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
....

Deploy

$ rake deploy

About

Arranging a date for international video chat

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published