Copy the .env.example file to .env and ask a team member for the values to use.
cp .env.example .env
Installing dependencies
GOV.UK Chat uses the govuk_chat_private gem to provide some configuration files. This gem is hosted on a private Github repo, so it needs authentication to install it.
Generate a personal access token (PAT) on Github here. Scope the token to only allow access to the govuk_chat_private repo. Under the “Repository permissions” section, select “read only” under the “Contents” section.
Configure Bundler to use the PAT:
bundle config --local github.com <token>
You can then install the dependencies like normal.
bundle
Running the test suite
bundle exec rake
Or can be run in govuk-docker with:
govuk-docker run govuk-chat-lite bundle exec rake
Starting the app
To start the app in govuk-docker from your local machine:
bin/setup --govuk-docker
If you’re not using govuk-docker you can run:
bin/setup
Frozen OpenSearch instance
To test against the frozen OpenSearch instance, see the govuk-chat-opensearch repository.