Mapping health innovation globally for the Robert Wood Johnson Foundation.
For local development:
-
clone the repo:
git clone git@github.com:nestauk/playground.git -
enter the directory:
cd playground -
install npm dependencies:
npm i -
build the data:
npm run data:geo:lookupnpm run data:geo:world -
build the lambda:
npm run lambda:build -
run the lambda:
npm run lambda:dev -
in a new terminal:
npm run devYou should see a message like:
> Listening on http://localhost:3000 -
navigate to
http://localhost:3000, then click on "search" or navigate directly tohttp://localhost:3000/search
To run all tests:
npm run test
To run tests in a specific file:
npm run test -- path/to/a/file.test.js
For example:
npm run test -- src/util/array.test.js
There are some commands that you can run to copy the state machine configurations to your clipboard allowing you to visit the xstate visualiser and paste the configuration into the window and see a preview of that machine.
To copy the screen_machine configuration to your clipboard run the following command:
npm run copy:screenTo copy the search_machine configuration to your clipboard run the following command:
npm run copy:searchUse the BASE_URL you find in the src/config.js, with the VPN enabled if you get any permission error.
- version: at
BASE_URLwe read:
"version" : {
"number" : "6.4.2",
},- indices aliases:
BASE_URL/_aliases
- null mappings
- fields aliases
- field types: