Skip to content
This repository has been archived by the owner on Feb 26, 2018. It is now read-only.
/ gp-redirect Public archive

DEPRECATED - no longer actively maintained

License

Notifications You must be signed in to change notification settings

nhsuk/gp-redirect

Repository files navigation

DEPRECATED - no longer actively maintained


GP redirect

GitHub Release Greenkeeper badge Build Status Coverage Status Known Vulnerabilities

A very simple app to receive requests on a single URL and forward those onto the appropriate page in the profiles app.

It is intended to work with requests from the NHS Choices site on the GP pages, using the id of the GP surgery from the referring page.

Application development

The application runs in docker containers. To start the application ready for development (where changes made on the local host will be auto-reloaded into the running container) run docker-compose up --build --force-recreate gp-redirect. Tests can be run inside a container via docker-compose -f docker-compose-tests.yml up tests. When a container has been finished with it should be taken down via docker-compose down -v. It is important to remove the volumes via -v so as to avoid issues with the contents being cached on the docker VM.

Environment variables

Environment variables are managed by the environment in which the application is run. This is best practice as described by twelve-factor.

The defaults given below are for when the application is run for development via docker-compose, as described above.

Variable Description Default
NODE_ENV Node environment development
LOG_LEVEL Numeric log level INFO
PORT Server port 2999

Architecture Decision Records

This repo uses Architecture Decision Records to record architectural decisions for this project. They are stored in doc/adr.