The purpose of this API is to ingest HEDIS data from pyspark, save it, and then use it to populate the Sarawati Dashboard.
- Run
cp .env.example .env
- Stand up the dashboard
- If you are on a linux based terminal
- Simply run
yarn run install:clean
- Simply run
- If not
- Run in terminal
yarn
- Run in terminal
yarn start
- Run in terminal
- Navigate to https://localhost:3000.
REACT_APP_HEDIS_MEASURE_API_URL
- URL To access HeRA
REACT_APP_GOOGLE_OAUTH_URL
- URL For Google OAuth
REACT_APP_GOOGLE_CLIENT_ID
- Client ID setup for Saraswati authentication
REACT_APP_DASHBOARD_URL
- URL for Saraswati Dashboard
REACT_APP_TOKENINFO
- URL for Google access token
REACT_APP_DEV_DATA
- true
to use data from local file, false
to fetch data from mongodb
REACT_APP_AUTH
- true
to force authorization before accessing dashboard, false
to bypass authorization
REACT_APP_LEGACY_RESULTS
- true
to get results from pre-calculated collection, false
to calculate results each query
On Debian-
[env variables] npx react-inject-env set
On Windows (CMD) -
set [env variable]; set [env variables]&& npx react-inject-env set
Examples -
REACT_APP_MVP_SETTING=true npx react-inject-env set
set REACT_APP_MVP_SETTING=true&& npx react-inject-env set
Static ENV's DO NOT ovveride your commands, but you must inject them into your static build folder with
npx react-inject-env -d [build directory]
or usually
npx react-inject-env -d ./build