Skip to content

Website for NICE British National Formulary (BNF) and British National Formulary for Children (BNFC). Built with Gatsby and using the NICE Design System

License

Notifications You must be signed in to change notification settings

nice-digital/bnf-gatsby

Repository files navigation

BNF and BNFC

Website for NICE British National Formulary (BNF) and British National Formulary for Children (BNFC) built with Gatsby and using the NICE Design System

🚀 Jump straight to getting started

What is it?

The BNF, or British National Formulary, provides guidance to health practitioners on prescribing, dispensing and administering medicines.

It's a microsite, updated once a month from a feed. It's built with Gatsby, a React-based static site generator, and is styled using components from the NICE Design System.

This project produces website for both the BNF (standard formulary) and BNFc (the version for children).

Project structure

Folder Purpose
gatsby Static site built with React and Gatsby
functional-tests Browser-based functional tests in WebdriverIO

Note: Each of these folders has its own readme with detailed setup steps etc

Stack

This is the high level stack. Each of the sub-projects (gatsby/functional-tests) has its own readme with more detailed stack.

Software

🚀 Set up

The easiest way to get the project running is:

  1. Use Volta to automatically use the correct version of Node pinned in package.json; or install the correct version of Node manually if you're not using Volta
  2. Clone this repository
  3. Open the root of the repository in VS Code
    1. Install recommended extensions when prompted
  4. Install dependencies:
    1. Open the command palette (Ctrl+Shift+P) in VS Code, then:
    2. Run 'npm: Install Dependencies' (and choose 'Run all commands listed below')
    3. This should run npm i for each Node project. If this doesn't work then run npm i in each folder with a package.json manually.
  5. Go to the 'Run and Debug' panel (Ctrl+Shift+D) in VS Code
  6. Run LAUNCH BNF/BNFC

Launching the app via LAUNCH BNF/BNFC runs the Gatsby site in dev mode on http://localhost:8000/, and launches it in Chrome for debugging once it's built and running.

Note: there are more granular ways to run each part of the project, either via an IDE or via the command line. See each sub-folders's readme for more details.

About

Website for NICE British National Formulary (BNF) and British National Formulary for Children (BNFC). Built with Gatsby and using the NICE Design System

Topics

Resources

License

Stars

Watchers

Forks