Configuration
Environment Variables
Honeycomb uses environment variables during build and run time to control the different configurations. Below we list the environment variables used by the app and indicate whether they are mandatory, optional and needed during build (npm build
) or run time (using the application executable or npm run dev
)
ELECTRON_START_URL
: URL (e.g.http://localhost:3000
) where the front end of the app is being hosted - also used inelectron.js
to indicate the app is running in dev modeEVENT_MARKER_PRODUCT_ID
: The product ID of the event marker (e.g.0487
). If not set, it will use theproductID
set inpublic/config/trigger.js
if available, or attempt to connect using the com name.EVENT_MARKER_COM_NAME
: The com name of the event marker (e.g.COM3
). If not set, it will use thecomName
set inpublic/config/trigger.js
. If the productID is set (not an empty string), this field will be ignored.REACT_APP_AT_HOME
: whether the app is being used in home mode (true) or clinic mode (false). During development and build time, you can runnpm run dev:home
/npm run dev:clinic
ornpm run build:home
/npm run build:clinic
to have the npm script set the variable for you. When running the production desktop application, you need to define it. Not defining this variable is equivalent to setting it tofalse
. Build-time and run-time values need to be the same.REACT_APP_PATIENT_ID
: The default patient id to show when requesting a patient ID inuserID
. If not set, no default is shown (blank input box).