Internal administrative tools service for GOV.UK Pay products.
The repository is pushed to Dockerhub when changes are approved into master, to use the latest version in a support role, simply run:
pay toolbox start
Getting the toolbox up and running for development.
npm install
# generate a dev environment file - run the version according to your needs
./scripts/generate-dev-environment # default - target services running through SSH tunnel
./scripts/generate-dev-environment local # target services running locally on your machine
./scripts/generate-dev-environment docker # for docker deployment - talk to external network
# this will watch javascript files for changes and restart the server accordingly
npm run dev
- Small files, each piece responsible for one thing
- Contextual tests, tests close to what they are testing, organised by feature
- Simple to understand architecture
- Latest language development standards
See .eslintrc.json
for specifics, we extend the popular
Airbnb Style Guide with a number of
exceptions.
semi
- see Eslint referenced blogpost
comma-dangle
- many popular diff/ review tools now allow ignoring whitespace
this should no longer be something we have to account for with hacks
array-bracket-spacing
- opinion: 👍 spacing