nixsiow/Burning_Airline_WDI4

Update Readme

Opened this issue · 0 comments

Recommend updating the Readme file as follows for others to test your app (below are the steps I had to follow to run it on my local machine):

  1. Clone the repository in Terminal
    git clone https://github.com/nixsiow/Burning_Airline_WDI4.git
    cd Burning_Airline_WDI4/

  2. Switch to Ruby version less than 2.1.2 (i.e. if using RVM):
    rvm list
    rvm use ruby-1.9.3-p547 (where 1.9.3-p547 is one of the earlier Ruby versions I have listed)

  3. Run Bundle to install Gems in Gemfile
    bundle install

  4. Create missing file /config/database.yml and add the following contents:
    default: &default
    adapter: postgresql
    encoding: unicode
    pool: 5
    development:
    <<: *default
    database: wdi4_burning_app_development

  5. Create and migrate the database, and import the seed information
    rake db:create
    rake db:migrate
    rake db:migrate RAILS_ENV=development
    rake db:seed

  6. Run the Rails Server
    rails s