Skip to content

sanger-archive/aker-reception-app

Repository files navigation

Aker - Reception app

Build Status Maintainability Test Coverage

An application for enabling provenance and receipt of Biomaterial.

Installation

Dev environment

  1. Configure or update ports to services in config/environments/development.rb.
  2. Setup DB using bundle exec rails db:setup. Alternatively, use:
  • bundle exec rails db:drop db:create db:migrate
  • Seed DB with bundle exec rails db:seed (first verify that your username has been added to the seed)

Label templates

To initialize the label templates, you need to modify Rails.configuration.pmb_uri to link with the right PrintMyBarcode instance and after that execute the rake task: rake label_templates:setup

Testing

Requirements

  • PhantomJS - install with npm install -g phantomjs

Running tests

  • Before running tests, make sure that the test database has been fully migrated: bundle exec rails db:migrate RAILS_ENV=test To execute the current tests, run: bundle exec rspec

Misc.

Useful links while upgrading to Rails 5.2 (incl. webpack)

About

An application for enabling provenance and receipt of Biomaterial

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 6