Skip to content
CloudSpokes (on Rails!) -- Main repo for the cloudspokes.com website. Used in various challenges to rebuild the site in rails.
Ruby JavaScript CoffeeScript
Find file
Failed to load latest commit information.
app
config heroku config changes Sep 29, 2011
db initial commit Sep 28, 2011
doc initial commit Sep 28, 2011
lib heroku config changes Sep 29, 2011
log initial commit Sep 28, 2011
public initial commit Sep 28, 2011
script initial commit Sep 28, 2011
spec initial commit Sep 28, 2011
vendor initial commit Sep 28, 2011
.gitignore Changed salesforce credentials Oct 10, 2011
.rspec initial commit Sep 28, 2011
Gemfile display for challenges Sep 29, 2011
Gemfile.lock display for challenges Sep 29, 2011
Guardfile initial commit Sep 28, 2011
README.md
Rakefile initial commit Sep 28, 2011
config.ru initial commit Sep 28, 2011

README.md

CloudSpokes (on Rails!)

This application is not a pixel-for-pixel or same-HTML remake of Cloudspokes. This was an intentional decision as it has been built with the same look and feel but using semantic HTML5 as well as Sprockets, SASS, and CSS3.

The application is on a clean skeleton and is set up for RSpec testing. To run the application, you can simply run rails server. It is also complete with a Gemfile, Guardfile for test automation, and more.

Basically this is a shell application that gives you everything you need to get up and running. It should deploy to Heroku great as-is.

Pages

The pages that are available are:

  1. Home Page (dynamic content excluded)
  2. About Page ("how it works" link)
  3. FAQs
  4. Privacy Policy
  5. Terms of Service

The required omniauth strategies have been added in config/initializers/omniauth.rb with the required consumer keys and consumer secrets from various OAuth providers. Change these values during deployment. Also there is a hard coded value of 'OmniAuth.config.full_host' to a 'https' url of the app. This is to force the callback generated by omniauth to have a 'https' (required for Salesforce).

Our OAuth module is at lib/auth.rb. It consumes the omniauth hash and generates a uniform hash for all providers with necessary values in a instance variable 'authhash' which can be used by other modules/classes.

The rails app has single controller: SessionController which has endpoints for /auth//callback and passes on the omniauth hash and provider to our 'lib/auth' module.

The current homepage with links to various providers is a simple static file: 'public/index.html'.

Something went wrong with that request. Please try again.