/terminal-lookup

Populates LOCODEs in a database and allows you to search within them

Primary LanguageRubyMIT LicenseMIT

Terminal Lookup

pipeline status coverage report

Developing

Dependencies

  • docker
  • docker-compose
  • rbenv

Installation

rbenv install
gem install bundler
bundle install
docker-compose up -d
bundle exec rake db:migrate

Loading location codes

bundle exec rake import_locodes

Running the tests

bundle exec rake test

Running an evaluation suite

bundle exec rake

Shipping

docker build . -t terminal-lookup-api:latest
export DESIRED_PORT=8080
export ENVIRONMENT=production
docker run -p "$DESIRED_PORT":8080 terminal-lookup-api:latest bundle exec rackup -o 0.0.0.0 -E "$ENVIRONMENT" -p 8080

Contributors

  • Diego Camargo