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:lookup
npm run data:geo:world
build the lambda:
npm run lambda:build
run the lambda:
npm run lambda:dev
in a new terminal:
npm run dev
You should see a message like:
> Listening on http://localhost:3000
navigate to http://localhost:3000
, then click on "search" or navigate directly to http://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:screen
To copy the search_machine
configuration to your clipboard run the following command:
npm run copy:search
Use the BASE_URL
you find in the src/config.js
, with the VPN enabled if you get any permission error.
BASE_URL
we read: "version" : {
"number" : "6.4.2",
},
BASE_URL/_aliases