Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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