Application to serve some mainstream formats and the homepage for GOV.UK.
A Ruby on Rails application that renders the citizen-facing part of formats stored in the Content Store. It looks up the passed-in slug in the Content Store.
It also serves the homepage (hard-coded route).
app/views/root for some bespoke transaction start pages.
To run the application standalone, run static and execute the following command:
which uses a local copy of static.
Note that you will have to have GOV.UK Mapit running locally.
To run in a full development stack (with DNS, all apps running etc.) just use
If you are using the GDS development virtual machine then the application will be available on the host at http://frontend.dev.gov.uk/
Note that the app uses a local version of GOV.UK Mapit, therefore a valid dataset will have to be loaded for Mapit, otherwise postcode lookups will not succeed. This is part of the standard GOV.UK data replication steps.
bundle exec rake runs the test suite.
The tests in
will be run as part of the
To run them in a browser on your local machine (useful for breakpointing):
INCLUDE_JS_TEST_ASSETS=1 bundle exec script/rails server -p 3150 --environment=teston your vm
This relies on you being able to access the above server on