Dynamic Computer Interactive Decision Application (DCIDA) is a dynamic CMS-like decision aid tool that can be used to make customizable decision aids. This is the API for DCIDA.
I recommend using homebrew to manage as many dependencies as you can (http://brew.sh/), and rvm for ruby management
- Ruby 2.2.0 (see https://rvm.io/)
- ImageMagick 6.9.1-10 (use homebrew)
- Postgresql 9.4.4 (use homebrew)
- Redis 3.0.3 (use homebrew)
- Foreman 0.78.0 (
gem install foreman)
- Create a file called
database.ymlin theconfigdirectory with the following format:
development:
adapter: postgresql
database: DATABASE_NAME
username: DATABASE_USER
password: DATABASE_PASSWORD
host: "localhost"
port: DATABASE_PORT
test:
adapter: postgresql
database: TEST_DATABASE_NAME_<%= ENV['TEST_ENV_NUMBER'] %>
username: TEST_DATABASE_USER
password: TEST_DATABASE_PASSWORD
host: "localhost"
port: DATABASE_PORT
- Create the database, and run database migrations
bundle exec rake db:createbundle exec rake db:migrate- Create an admin superuser
bundle exec rake "admin:create_user[admin@example.com,my_fun_password,true]"- The parameters to admin:create_user are:- email: string (required)
- password: string (required)
- is_superadmin: bool (required) - superadmin has full control over all decision aids
- Start the development server
foreman start
At this point, you should have Rails running on Thin at http://localhost:3000, along with Redis running in standalone mode and Sidekiq booted alongside Rails.