Dev Setup - Health123/wiki GitHub Wiki

This should be sufficient to get up and running both the health123 rails app and romulus. It's written for an ubuntu OS but should transfer to other linux and mac easily.

  • apt-get installs:

    • for general: vim git htop
    • for postgresql: postgresql-server-dev-9.3 postgresql-contrib-9.3
    • for capybara-webkit gem: qt4-qmake libqtwebkit-dev
    • for coffee-rails gem & javascript: nodejs
    • for in-app image processing: imagemagick
    • for running specs: xvfb
  • setup ~/.ssh with public/private keys (and config for ease of ssh to ec2)

  • ruby setup

  • redis setup

  • postgres setup

    • needs to be at least version 9.3
    • edit pg_hba.conf - (/etc/postgresql/9.3/main/ for ubuntu), down near the bottom change the METHOD columns to TRUST instead of PEER or MD5 but not for the database administrative line, make sure to restart postsgres after this
    • additional steps, make yourself a local db superuser: sudo -u postgres createuser -s -r <your_system_username>

Health123 setup:

git clone [email protected]:Health123/health123.git
cd health123
gem install bundler
bundle install
bundle exec rake db:setup
bundle exec rake db:local_setup
bundle exec rake db:add_admin
bundle exec rspec
bundle exec rails s

Romulus setup:

git clone [email protected]:Health123/romulus.git
bundle install --standalone --binstubs
bin/rake db:setup
bin/rake db:setup RACK_ENV=test
bin/rake aws_creds:check
bin/rake aws_creds:create
bin/rake

Determine if these are needed still:

  • python-pip
  • python-dev
  • libxml2-dev
  • libxslt-dev
  • awscli