Rails App and API for an open source music portal.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
public
spec
.gitignore
.rspec
Gemfile
Gemfile.lock
Rakefile
changelog.md
config.ru
readme.md

readme.md

Open Music Portal - Rails App

Setup

You will need Ruby 2.1.1 and Rails 4.1.0. Once you have both of those installed, you can run the following:

bundle install

Setting up your database

Make a copy of the sample database.yml file:

cp config/sample/database.yml config/database.yml

Open it up and change the username for the development and test environments.

Next, you're going to have to create a file for storing development environment variables.

touch config/initializers/environment_variables.rb

Don't worry, this file is not commmitted to git so you can add whatever keys you want to this file. It will remain active in devleopment mode only. Then run:

rake db:migrate

And if that goes well too, you can start the rails server!

rails s

Seeding Data

We have a csv file with a database of music piece entries. To load this into the database, run the following:

rake db:seed