Skip to content

sparc-request/sparc-fulfillment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6,308 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest stable release v2.1.0

Work Fulfillment

Customize the header background color and logos

  1. Add institution specific CSS to /sparc-fulfillment/app/assets/stylesheets/customize.sass
  2. Create a custom version of /sparc-fulfillment/app/views/application/_header.html.haml
  3. Add the customized versions of app/assets/stylesheets/customize.sass and app/views/application/_header.html.haml to your server's /shared/ directory
  4. 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', ....)

Configure developer workstation to run both sparc-request and sparc-fulfillment

  1. git clone https://github.com/sparc-request/sparc-fulfillment.git
  2. rvm install ruby-2.1.5
  3. rvm use ruby-2.1.5
  4. bundle install
  5. create local database for rails server:
  6. CREATE SCHEMA sparc_fulfillment; GRANT ALL ON sparc_fulfillment.* TO 'sparc'@'localhost';
  7. create local test databases:
  8. CREATE SCHEMA test_sparc_fulfillment; GRANT ALL ON test_sparc_fulfillment.* TO 'sparc'@'localhost';
  9. CREATE SCHEMA test_sparc_request; GRANT ALL ON test_sparc_request.* TO 'sparc'@'localhost';
  10. configure local databases named sparc_fulfillment, test_sparc_fulfillment, and test_sparc_request for development and test environments:
  11. configure config/database.yml to connect to your dev and test databases
  12. configure config/shards.yml to connect to your dev and test sparc-request databases
  13. configure .env by copying from dotenv.example
  14. run: rake db:migrate
  15. run tests: bundle exec rspec
  16. configure and start sparc-request on port 3000 with:
  17. 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
  18. rails server
  19. bundle exec script/delayed_job start
  20. in catalog manager: turn on "Fulfillment" for an Institution, Provider, Program, or Core and give yourself "Fulfillment Provider Rights"
  21. start sparc-fulfillment on port 5000 with:
  22. rails server -p 5000
  23. bundle exec bin/delayed_job start

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors