An application for enabling provenance and receipt of Biomaterial.
- Configure or update ports to services in
config/environments/development.rb
. - 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)
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
- PhantomJS - install with
npm install -g phantomjs
- 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
- https://stackoverflow.com/questions/28969861/managing-jquery-plugin-dependency-in-webpack
- How to include Twitter Bootstrap 3 using webpack
- Bootstrap 4 with webpack - not yet implemented but link will be useful
- jQuery and jQuery-UJS requirements with webpack - it is important to remember that jquery-ujs adds the required CSRF token to all AJAX requests.