Application for address matching addresses to a UPRN using data from the NGD database
- Ruby
- PostgreSQL
- Bundler (run
gem install bundler)
bundle install
Ensure you have Postgres installed. If you are working on a Mac, this page help you install it.
You will need to have a user with the role name postgres, which has the Create DB and Superuser permissions to create databases.
Once you have set this up, run the command to set up and seed your local database
make setup-db
make test
To run Rubocop on its own, run:
make format
Set the Sintra environment. Should be one of "production", "development" or "test".
Sinatra will fallback to RACK_ENV or "development" if unset.
sintra-activerecord
uses APP_ENV as the active record environment, but will fallback to RAILS_ENV if it is not supplied.
This should be one of "production", "development" or "test". It will default to
"development" if neither APP_ENV or RAILS_ENV is set.
Used by rackup to choose the default middleware stack. Should be one of "development" (default) or "deployment". If set to any other value no middleware stack is loaded.
The EPB environment. Can be one of "test", "development", "integration", "staging" or "production".
- Unless "development" or "test", enables Sentry and sets its environment value
Postgres connection string for connecting to the database
The password for the database. Only used during test.
Issuer for the JWT encoded auth token.
Secret for the JWT encoded auth token.