Development was carried out in a Hyper-V virtual machine built via the Quick Create Action, Ubuntu 20.04 Operating System.
- Ruby 2.7.4
- PostgreSQL
- NodeJs 14.x
- Yarn 1.22.x
- Docker
- Run
bundle install
to install the gem dependencies - Run
yarn
to install node dependencies - Run
bin/rails db:setup
to set up the database development and test schemas, and seed with test data - Run
bundle exec rails server
to launch the app on http://localhost:3000 - Run
./bin/webpack-dev-server
in a separate shell for faster compilation of assets
- The development is based on the DFE Rails Template, which includes the GOV UK Design System Form Builder
The application requires the following environment variables to be configured
Name | Purpose |
---|---|
DB_HOST | Database URL |
DB_DATABASE | Database name |
DB_USERNAME | Database username |
DB_PASSWORD | Database password |
STORAGE_ACCOUNT_NAME | Azure Storage account name |
STORAGE_ACCESS_KEY | Azure Storage access key |
STORAGE_CONTAINER | Azure Storage container name |
GOVUK_NOTIFY_API_KEY | GOV UK Notification Service API Key |
SERVICE_REVIEW_URL | URL of feedback form |
MWR_TRANSMIT_API | URL of service API |