A Sinatra app for discovering and collecting color palettes
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
db
public
views
Gemfile
Gemfile.lock
README.md
app.rb
config.rb
config.ru
rakefile.rb

README.md

Sinatra Colors

A Sinatra app for discovering and collecting color palettes, integrated with ActiveRecord and PostgreSQL. (View live demo)[sinatra-colors.herokuapp.com]

screenshot-colors

Dependencies

Colour Lovers API: http://www.colourlovers.com/api/

gem 'sinatra'
gem 'sinatra-reloader'
gem 'httparty'
gem "pg"
gem "activerecord"
gem "sinatra-activerecord"

Install

After cloning the project directory, create a database for the project in psql and replace the name:

db_url = ENV['DATABASE_URL'] || 'postgres://[username]:[password]@localhost/[db name]'

Deploying to heroku:

heroku addons:add heroku-postgresql
rake db:migrate