Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby CSS Other
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
bin
config
db
doc
lib
log
public
script
spec
vendor
.gitignore
.rspec
.travis.yml
Gemfile
Gemfile.lock
Guardfile
README.md
README.rdoc
Rakefile
config.ru

README.md

user-owner Build Status

Setup

Database

  • You need to set up a local database. Any of the databases supported by Rails will work, but PostgreSQL is recommended.
  • Some tutorials are here and here. If you're on a mac, use Heroku's Postgres.app
  • Make a copy of the database.yml.sample provided (in the config directory); name it database.yml
  • Fill in the details for your database.

For example, the database.yml will look something like this if you're using Postgres.app:

development:
  adapter: postgresql
  encoding: unicode
  database: user_service_development
  pool: 5
  username: 
  password:

test:
  adapter: postgresql
  encoding: unicode
  database: user_service_test
  pool: 5
  username: 
  password:

production:
  adapter: postgresql
  encoding: unicode
  database: user_service_production
  pool: 5
  username: 
  password:
  • Navigate to the survey-web directory from a terminal.
  • Type rails server
  • If the server starts up without complaining, your database is set up correctly.

Gems

  • To install all the libraries required by this application, navigate to the survey-web directory from a terminal.
  • Type gem install bundler and then bundle install

Users

  • Create an super_admin user for user-owner by running the following. This step is required.
$ rake db:super_admin
  • You can generate a CSO Admin and a Field agent as well by running the following. This is optional.
$ rake db:users
  • You will now have the following users set up:
CSO Admin: {email: "cso_admin@admin.com", password: "cso_admin"}
Field Agent: {email: "field_agent@admin.com", password: "field_agent"}
  • These users belong to My Organization

Finally...

  • Start the survey-web app by typing rails server from the console.
  • Use rails server -p 3001 if a client app is running on the default port 3000.
Something went wrong with that request. Please try again.