A service that allows employers and agencies to check whether someone appears on the Children’s Barred List.
This project depends on:
Install dependencies using your preferred method, using asdf
or rbenv
or
nvm
. Example with asdf
:
# The first time
brew install asdf # Mac-specific
asdf plugin add ruby
asdf plugin add nodejs
asdf plugin add yarn
asdf plugin add postgres
# To install (or update, following a change to .tool-versions)
asdf install
You’ll need to install Redis. The way to do this is different on each operating system, but on macOS you can try the following:
brew install redis
brew services start redis
If installing Redis manually, you'll need to start it in a separate terminal:
redis-server
Setup the project (re-run after Gemfile
or package.json
updates, automatically restarts any running Rails server):
bin/setup
Run the application on http://localhost:3000
:
bin/dev
Edit .env.development.local
and add a BigQuery key if you want to use BigQuery locally.
See DfE Analytics for information on how to get a key.
You also need to set BIGQUERY_DISABLE
to false
as it defaults to true
in the development environment.
Read more about setting up BigQuery.
To run the linters:
bin/lint
To run the tests:
bin/test
solargraph is bundled as part of the development dependencies. You need to set it up for your editor, and then run this command to index your local bundle (re-run if/when we install new dependencies and you want completion):
bin/bundle exec yard gems
You’ll also need to configure your editor’s solargraph
plugin to
useBundler
:
+ "solargraph.useBundler": true,
We keep track of architecture decisions in Architecture Decision Records (ADRs).
We use rladr
to generate the boilerplate for new records:
bin/bundle exec rladr new title