An open API service indexing awesome lists of open source software.

https://github.com/gardner/socialkit


https://github.com/gardner/socialkit

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

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
-------------
* Install ruby (rvm is recommended)
* Install rails (currently rails-bootstrap is running on Rails 3.2.11)
* Postgres or mysql is nice but not necessary, rails will default to sqlite
* Install git http://help.github.com/mac-set-up-git/
* Get set up to push/pull from github http://help.github.com/mac-set-up-git/
* Setup for heroku https://devcenter.heroku.com/articles/rails3

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`

* Create a Heroku app https://devcenter.heroku.com/articles/rails3#deploy_to_herokucedar

`$ heroku create`
`$ git push heroku master`

### What you’ve got
* Slim
* Compass
* Devise
* Twitter bootstrap
* Coffeescript
* Omniauth sign in with Facebook (easy to add Twitter or another OAuth provider)

### Customize your app
* Rename (search and replace) “SocialKit” 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](http://twitter.com/adamloving) to let me know how it went.