Giter Club home page Giter Club logo

service-manual-frontend's Introduction

Service Manual Frontend

Service Manual Frontend is a public-facing app to display the service manual formats on GOV.UK.

Technical documentation

This is a Ruby on Rails application that fetches documents from content-store and displays them.

Dependencies

Development notes

The application does not serve content at its root (/) - the homepage will be found at service-manual-frontend.dev.gov.uk/service-manual but only if the content item for the homepage exists in the content store.

You can achieve this by restoring from a production backup, publishing the home page using the rake task in service-manual-publisher or by using the dummy content store.

Running the test suite

The test suite relies on the presence of the govuk-content-schemas repository. If it is present at the same directory level as the service-manual-frontend repository then run the tests with:

bundle exec rake

Or to specify the location explicitly:

GOVUK_CONTENT_SCHEMAS_PATH=/some/dir/govuk-content-schemas bundle exec rake

Visual regression tests

Use Wraith ("A responsive screenshot comparison tool") to generate a visual diff to compare rendering changes in this application.

Wraith does not work correctly from within the VM because assets-origin.dev.gov.uk is not resolvable within the VM, and so none of the assets load. You should instead install wraith on your local machine and run it from there.

Wraith has some dependencies you'll also need to install.

First, on master branch, run:

wraith history test/wraith/config.yaml

Then, on a branch with your changes, run:

wraith latest test/wraith/config.yaml

This will generate image diffs comparing the two runs, including a browseable gallery of the output, in tmp/wraith.

Use of BEM

The Service manual frontend application uses a modified version of the BEM methodology, coined by Harry Roberts.

It uses the following conventions:

  • block, element and modifier names are written in lower case
  • words within the names of BEM entities are separated by a hyphen (-)
  • an element name is separated from a block name by a double underscore (__)
  • modifiers are delimited by double hyphens (--)
  • Key-value type modifiers are not used

A block:

.button

An element:

.button__icon

A modifier:

.button--large

Licence

MIT License

service-manual-frontend's People

Contributors

36degrees avatar andrewvos avatar andysellick avatar barrucadu avatar benlovell avatar benthorner avatar boffbowsh avatar cbaines avatar deborahchua avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar dsingleton avatar edds avatar fofr avatar gemmaleigh avatar h-lame avatar injms avatar issyl0 avatar jamiecobbett avatar kevindew avatar mcmillan avatar murilodalri avatar pixeltrix avatar sihugh avatar tadast avatar tekin avatar thehenster avatar thomasleese avatar tijmenb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.