Skip to content
Markdown Sample.
Ruby JavaScript CoffeeScript
Find file
Latest commit 31e847c Jun 27, 2012 Shun Matsumoto update
Failed to load latest commit information.
app update Jun 27, 2012
config update Jun 27, 2012
db update Jun 25, 2012
doc first commit Jun 25, 2012
lib first commit Jun 25, 2012
log first commit Jun 25, 2012
public first commit Jun 25, 2012
script first commit Jun 25, 2012
vendor first commit Jun 25, 2012
.gitignore update Jun 25, 2012
Gemfile update Jun 27, 2012
Gemfile.lock update Jun 27, 2012
README.md first commit Jun 25, 2012
Rakefile first commit Jun 25, 2012
config.ru first commit Jun 25, 2012

README.md

APP_NAME

APP_DESCRIPTION.

Local Setting

GitHub上でFork

https://github.com/USER_NAME/APP_NAME/

リポジトリをローカルへ作成

$ cd ~/WORK_DIRECTORY
$ git clone git@github.com:YOUR_USER_NAME/APP_NAME.git
$ cd APP_NAME

ブランチ作成

$ git checkout -b YOUR_NEW_BRANCH

Twitterアプリ登録

Twitter Create an application

Name: [ (アプリケーションの名前) ]
Description: [ (アプリケーションの説明) ]
WebSite: [ http://0.0.0.0:3000/ ]
Callback URL: [ http://0.0.0.0:3000/ ] ※登録しないと動かない

□ Yes, I agree <= チェック

CAPTCHA入力後「Create your Twitter application」を押下

ローカル用Twitterキー設定

Create: config/initializers/local_setting.rb

# Twitter OAuth Local Setting
ENV['TWITTER_KEY'] = "YOUR_CONSUMER_KEY"
ENV['TWITTER_SECRET'] = "YOUR_CONSUMER_SECRET"

※Twitterアプリ登録完了後に表示された「Consumer key」を「YOUR_CONSUMER_KEY」に、「Consumer secret」を「YOUR_CONSUMER_SECRET」にそれぞれ入力

Rails起動

Gemインストール

bundle install --without production

ローカルDB作成

rake db:migrate

ローカルサーバ起動

bundle exec rails s

ページアクセス

http://0.0.0.0:3000/

Copyright

Copyright (c) 2012 MY_NAME. CC BY-NC-SA 2.1

Something went wrong with that request. Please try again.