Vanilla Rails application with sign-in
Ruby HTML CSS JavaScript Other
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.sass-cache
app
config
db
doc
lib
log
public
script
test
vendor
.gitignore
Gemfile
Gemfile.lock
Procfile
README.mkd
Rakefile
config.ru
console-prod.sh
console.sh
deploy.sh
log-prod.sh
log.sh
server.sh
test.sh
work.sh

README.mkd

Rails Bootstrap

Introduction

This project is will give you a fresh Web application with state of the art tools when you sit down at a StartupWeekend or hackathon. Below is a step by step guide to set up a Rails web application in just an hour. You definitely want to complete the prerequisites before the event begins.

Prerequisites

Steal the goodness

Start here if you are familiar with Rails, git, and Heroku.

  • Buy your domain name
  • Clone the Github repo

$ git clone git@github.com:adamloving/rails-bootstrap.git myproject

  • Run it locally

    $ bundle install $ export DEVISE_SECRET_KEY=biglonghexstring $ rails server

Note, you'll need to add your Facebook and Twitter app IDs to make sign in work.

  • Create a Heroku app

$ heroku create $ git push heroku master

What you’ve got

  • Slim
  • Devise
  • Twitter bootstrap
  • Omniauth sign in with Facebook (easy to add Twitter or another OAuth provider)

Get app running in Development environment (your laptop)

$ bundle install
$ rake db:migrate

Create a .env file

$ foreman start web

Customize your app

  • Rename (search and replace) “RailsBootstrap” to the name of your app.

Continue to install

  • Create your database

$ heroku rake db:migrate

  • Point your domain name at your heroku app https://devcenter.heroku.com/articles/custom-domains

    $ heroku domains:add www.myapp.com $ heroku domains:add myapp.com

  • add a CNAME record for myapp.heroku.com (and A records)

  • Create a Facebook app for login. Setup the app with your domain on Facebook.

  • add config variables for your Facebook App

$ heroku config:add FACEBOOK_APP_ID=1234 $ heroku config:add FACEBOOK_SECRET=4567

Voila, within a few minutes you should be live.

Send @adamloving a tweet to let me know how it went.