/profiles

DEPRECATED - no longer actively maintained

Primary LanguageJavaScriptMIT LicenseMIT

DEPRECATED - no longer actively maintained


Profiles

GitHub Release Greenkeeper badge Build Status Coverage Status Known Vulnerabilities

A collection of health service provider profiles. Initially containing GP practices and Pharmacies.

Test environments

As the application is being developed, every Pull Request has its own test environment automatically built and deployed to.

Every environment apart from the one we want the public to access requires basic authentication to access. The username and password are not secret, in fact they are included within environment variable table below. The intention with the authentication challenge is to prevent people whom may stumble across the site and not realise it is for testing, it also prevents access by search engines and other bots.

Environment variables

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

Variable Description Default
NODE_ENV node environment development
LOG_LEVEL numeric log level Depends on NODE_ENV
PORT server port 3000
GOOGLE_ANALYTICS_TRACKING_ID Google Analytics property id
WEBTRENDS_ANALYTICS_TRACKING_ID Webtrends tracking id
HOTJAR_ANALYTICS_TRACKING_ID Hotjar tracking id
BASIC_AUTH An MD5 encrypted htpasswd test:test

Working on the application

Start by cloning the repo and all submodules i.e. git clone https://github.com/nhsuk/profiles.git && cd profiles/ && git submodule update --init --recursive

Next, check out the set of scripts for getting the application running scripts

Architecture Decision Records

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