A tool for tracking uniquely barcoded labware
-
Get the right Ruby version Make sure you have the correct ruby version (in
.ruby-version
file) installed. e.g.rvm install ruby-3.2.0
. -
Create a new gemset and install bundler (if necessary)
rvm use ruby-3.2.0@rails526 --create gem install bundler
-
Install dependencies:
bundle install npm install
-
Remove the
.example
suffix from two files -database.yml.example
andbunny.yml.example
-
Set up the local database The local database uses
mysql
.bundle exec rails db:create bundle exec rails db:environment:set bundle exec rails db:schema:load
bundle exec rspec
bundle exec rails server
The ruby apiary client has been archived and is not compatible with later versions of Ruby so it has to be removed. There will be no viewable api docs although the api.apib file is still available. We will need to use something else to build the docs or use rdoc.
bundle exec rails db:reload
This will create a user, location types and locations in a nested structure similar to the live setup.
bundle exec rails restrictions:create
This will limit certain location parentage when creating locations and other restrictions seen in app/data/restrictions
bundle exec rails db:clear
This will remove all of the existing data without resetting the database.
bundle exec rails labwares:generate_barcodes[num]
num = number of labwares that will be created.
This will create a number of labware barcodes that can then be scanned into the scan page.
-
Scan In/Out (home page): Scan labwares into a Location
-
Upload Labware: Upload Labwares into a location
-
Move Locations: Move any number of locations from one place to another (all child locations will also be moved)
-
Empty Location: Remove all labwares from a location
-
Configure: Administrator permissions are required but these pages allow you to create/update/deactivate Location Types, Locations, Users, Teams and Printers
Update .release-version
with major/minor/patch. On merging a pull request into develop, a release will be created with the release version as the tag/name + -develop
Merging develop into master will create a release with the same name as the latest develop release but without the -develop suffix. You do NOT need to update .release-version
An ERD was created using the rails-erd
gem by executing: bundle exec erd
Secrets are now managed differently. This can be done by running the command bundle exec rails credentials:edit
locally
This will create a credentials.yml.enc
and master.key
in the config directory