Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby Other
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
lib
log
public
script
spec
vendor
.env
.gitignore
.rspec
.ruby-version
.rvmrc
Gemfile
Gemfile.lock
Guardfile
Procfile
README.md
Rakefile
config.ru

README.md

Roguegallery

...

Generated with Raygun.

Requirements

To run the specs or fire up the server, be sure you have these:

  • Ruby 1.9.3-p327
  • PostgreSQL 9.x with superuser 'postgres' with no password (createuser -s postgres)
  • PhantomJS for JavaScript testing (brew install phantomjs)

Development

First Time Setup

After cloning, run these commands to install missing gems and prepare the database.

$ gem install bundler
$ bundle update
$ rake db:setup db:sample_data

Note, rake db:sample_data loads a small set of data for development. Check out db/sample_data.rb for details.

Running the Specs

To run all ruby and jasmine specs.

$ rake

Again, with coverage for the ruby specs:

$ rake spec:coverage

Running the Application Locally

$ foreman start
$ open http://0.0.0.0:3000"

Using Guard

Guard is configured to run ruby and jasmine specs, and also listen for livereload connections. Growl is used for notifications.

$ bundle exec guard

Deploying to Heroku

Install the heroku toolbelt if you don't already have it (https://toolbelt.heroku.com/).

$ heroku apps:create roguegallery
$ git push heroku master
$ heroku run rake db:setup

Considerations

...

Something went wrong with that request. Please try again.