Giter Site home page Giter Site logo

profiles's Introduction

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.

profiles's People

Contributors

adamgraves-choices avatar alex-colbeck avatar beseven avatar greenkeeper[bot] avatar greenkeeperio-bot avatar markysoft avatar neilbmclaughlin avatar sinclr4 avatar st3v3nhunt avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

profiles's Issues

Do specific content / UI testing

Currently there are a number of assertions within the integration tests that are checking for content. These should really be moved out of the integration tests and done specifically for the testing the UI.

Remove contents of /public/css

The contents are generated during image creation, therefore the .css files aren't being used and should be removed to avoid any confusion

Extend the integration test for the valid GP

It would be worth including as much data as possible in the test. As part of this the image of the db being used should be locked down to a test specific version i.e. one that doesn't or isn't going to change. This allows the tests to be written in the knowledge the data will not change and the tests will not fail because of the data.

Check for availability of `ga` in script

In customga.js it is assumed ga is available as a global function. This is only the case when Google Analytics has been loaded. Currently there is a check in the view that includes the JS. Ideally the JS would do the check itself to prevent it being run in an environment where ga should be available but for whatever reason isn't.

This would also allow all of the customXX.js files to be combined into a single one which could then be minified and hashed.

Split opening times into open and closed for JSON-LD

The JSON-LD is included in the page by the partial view schema.nunjucks has a property for opens and closes. Currently, both properties are the same value and contain both opening and closing time. The data needs to be split so these fields can be set correctly.
What to return when the surgery is closed needs to be considered.

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.