Skip to content
This repository was archived by the owner on Jan 7, 2020. It is now read-only.
/ defra-hapi-modules Public archive

Contains common modules for addresses, names, emails etc that can be inherited from to create specific routes in a Defra frontend web application

Notifications You must be signed in to change notification settings

DEFRA/defra-hapi-modules

Repository files navigation

DEPRECATED - no longer actively maintained

Please replace with the following plugins:

"defra-hapi-change-answers": "git+https://github.com/DEFRA/defra-hapi-change-answers.git#v0.1.0",
"defra-hapi-error-handling": "git+https://github.com/DEFRA/defra-hapi-error-handling.git#v0.1.0",
"defra-hapi-handlers": "git+https://github.com/DEFRA/defra-hapi-handlers.git#v0.1.0",
"defra-hapi-photos": "git+https://github.com/DEFRA/defra-hapi-photos.git#v0.1.0",
"defra-hapi-route-flow": "git+https://github.com/DEFRA/defra-hapi-route-flow.git#v0.1.0",
"hapi-govuk-frontend": "git+https://github.com/DEFRA/hapi-govuk-frontend.git#master",
"hapi-proxy-get": "^0.1.3",

An example of how to use the above can be found in: https://github.com/DEFRA/ivory-front-office

Ivory Common modules

Build Status Known Vulnerabilities Code Climate Test Coverage

Development Team

This module was developed by the Ivory team as part of a digital transformation project at DEFRA, a department of the UK government

Prerequisites

Please make sure the following are installed:

Check that your environment is running the correct versions of node and npm:

$ npm --version
6.9.0
$ node --version
v10.15.3

Installation

Clone the repository and install its package dependencies:

git clone https://github.com/DEFRA/defra-hapi-modules.git && cd defra-hapi-modules
npm install

Unit testing the shared code

Use the following npm task. This runs the StandardJS linting as well as the unit tests to produce a coverage.html report

npm test

Contributing to this project

If you have an idea you'd like to contribute please log an issue.

All contributions should be submitted via a pull request.

License

THIS INFORMATION IS LICENSED UNDER THE CONDITIONS OF THE OPEN GOVERNMENT LICENCE found at:

http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3

The following attribution statement MUST be cited in your products and applications when using this information.

Contains public sector information licensed under the Open Government license v3

About the license

The Open Government Licence (OGL) was developed by the Controller of Her Majesty's Stationery Office (HMSO) to enable information providers in the public sector to license the use and re-use of their information under a common open licence.

It is designed to encourage use and re-use of information freely and flexibly, with only a few conditions.

About

Contains common modules for addresses, names, emails etc that can be inherited from to create specific routes in a Defra frontend web application

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •