All Projects → alphagov → Frontend

alphagov / Frontend

Licence: mit
Serves the homepage, transactions and some index pages on GOV.UK

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Frontend

Govuk Aws
The GOV.UK repository for our Migration to AWS
Stars: ✭ 334 (+42.74%)
Mutual labels:  govuk
Fabric Scripts
GOV.UK Fabric scripts
Stars: ✭ 56 (-76.07%)
Mutual labels:  govuk
Magna Charta
Accessible, useful, beautiful barcharts from HTML tables.
Stars: ✭ 151 (-35.47%)
Mutual labels:  govuk
Govuk Component Guide
A style guide for GOV.UK Components shared between applications
Stars: ✭ 16 (-93.16%)
Mutual labels:  govuk
Cdn Acceptance Tests
CDN Acceptance Tests
Stars: ✭ 46 (-80.34%)
Mutual labels:  govuk
Govspeak
Markdown extension library for Government editors
Stars: ✭ 65 (-72.22%)
Mutual labels:  govuk
need-o-tron
No description or website provided.
Stars: ✭ 35 (-85.04%)
Mutual labels:  govuk
Government Service Design Manual
Government Service Design Manual
Stars: ✭ 186 (-20.51%)
Mutual labels:  govuk
Design Principles
Serves /design-principles on GOV.UK
Stars: ✭ 55 (-76.5%)
Mutual labels:  govuk
Smart Answers
Serves smart answers on GOV.UK
Stars: ✭ 148 (-36.75%)
Mutual labels:  govuk
Blinken
RETIRED. Superseded by https://github.com/alphagov/blinkenjs
Stars: ✭ 13 (-94.44%)
Mutual labels:  govuk
Calendars
Serves /bank-holidays and /when-do-the-clocks-change on GOV.UK
Stars: ✭ 39 (-83.33%)
Mutual labels:  govuk
Static
GOV.UK static files and resources
Stars: ✭ 100 (-57.26%)
Mutual labels:  govuk
Whitehall
Publishes government content on GOV.UK
Stars: ✭ 634 (+170.94%)
Mutual labels:  govuk
Styleguides
GOV.UK coding standards and guidelines for other tools we use
Stars: ✭ 179 (-23.5%)
Mutual labels:  govuk
govuk-docker
GOV.UK development environment using Docker 🐳
Stars: ✭ 37 (-84.19%)
Mutual labels:  govuk
Govuk Guix
Package, service and system definitions using GNU Guix for software and systems related to GOV.UK.
Stars: ✭ 58 (-75.21%)
Mutual labels:  govuk
Govuk React
An implementation of the GOV.UK Design System in React using CSSinJS
Stars: ✭ 219 (-6.41%)
Mutual labels:  govuk
Router
Router in front on GOV.UK to proxy to backend servers on the single domain
Stars: ✭ 181 (-22.65%)
Mutual labels:  govuk
Govuk Puppet
Puppet manifests used to provision the main GOV.UK web stack
Stars: ✭ 109 (-53.42%)
Mutual labels:  govuk

GOV.UK Mainstream, Home & Search Frontend

Application to serve some mainstream formats and the homepage for GOV.UK.

Live examples

Formats

Hard-coded routes

Nomenclature

  • Formats - our phrase for a type of content

Technical documentation

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).

See app/views/root for some bespoke transaction start pages.

Dependencies

Running the application

To run the application standalone, run static and execute the following command:

PLEK_SERVICE_STATIC_URI=http://127.0.0.1:3013 ./startup.sh

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 ./startup.sh.

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.

Running the test suite

bundle exec rake runs the test suite.

JavaScript unit testing

The tests in test/javascripts will be run as part of the test:javascript task.

To run them in a browser on your local machine (useful for breakpointing):

  1. run INCLUDE_JS_TEST_ASSETS=1 bundle exec script/rails server -p 3150 --environment=test on your vm
  2. open test/javascripts/support/LocalTestRunner.html (as a static file) in your browser.

This relies on you being able to access the above server on http://www.dev.gov.uk:3150.

Licence

MIT Licence

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].