Latest stable release v2.1.0
- Add institution specific CSS to /sparc-fulfillment/app/assets/stylesheets/customize.sass
- Create a custom version of /sparc-fulfillment/app/views/application/_header.html.haml
- Add the customized versions of app/assets/stylesheets/customize.sass and app/views/application/_header.html.haml to your server's /shared/ directory
- Update your config/deploy.rb to include the two aforementioned files in the list of linked_files: set :linked_files, fetch(:linked_files, []).push('app/assets/stylesheets/customize.sass', 'app/views/application/_header.html.haml', 'config/database.yml', ....)
- git clone https://github.com/sparc-request/sparc-fulfillment.git
- rvm install ruby-2.1.5
- rvm use ruby-2.1.5
- bundle install
- create local database for rails server:
- CREATE SCHEMA sparc_fulfillment; GRANT ALL ON sparc_fulfillment.* TO 'sparc'@'localhost';
- create local test databases:
- CREATE SCHEMA test_sparc_fulfillment; GRANT ALL ON test_sparc_fulfillment.* TO 'sparc'@'localhost';
- CREATE SCHEMA test_sparc_request; GRANT ALL ON test_sparc_request.* TO 'sparc'@'localhost';
- configure local databases named sparc_fulfillment, test_sparc_fulfillment, and test_sparc_request for development and test environments:
- configure config/database.yml to connect to your dev and test databases
- configure config/shards.yml to connect to your dev and test sparc-request databases
- configure .env by copying from dotenv.example
- run: rake db:migrate
- run tests: bundle exec rspec
- configure and start sparc-request on port 3000 with:
- configure application.yml: 1. remote_service_notifier_host: "127.0.0.1:5000" 2. host: "127.0.0.1:3000" 3. clinical_work_fulfillment_url: http://127.0.0.1:5000
- rails server
- bundle exec script/delayed_job start
- in catalog manager: turn on "Fulfillment" for an Institution, Provider, Program, or Core and give yourself "Fulfillment Provider Rights"
- start sparc-fulfillment on port 5000 with:
- rails server -p 5000
- bundle exec bin/delayed_job start