This dashboard comprises the always-on visiblity part of the OpenHealthSuite puzzle. It is the oldest part, and will probably be the last part completed.
- Node (ideally, use a version manager like
fnm
ornvm
) - Docker
- A fitbit application registered for
http://localhost:3000
- credstash - will probably find a replacement at some point, but we need some secrets
- There are a few credstash keys that need to be populated:
- Local:
paceme-local/fitbit-client-id
paceme-local/fitbit-client-secret
- Local:
- There are a few credstash keys that need to be populated:
From the root, run:
npm i
to install root utility functionsnpm run stack:spinup
to pull and start the needed docker images (postgres and redis)npm run stack:devenvfiles
to generate your .env filesnpm run stack:install
to do the needednpm install
'snpm run start
to start both the API and Webapp concurrently
FITBIT_CLIENT_ID
: Registered client for fitbit integrationFITBIT_CLIENT_SECRET
: Registered secret for fitbit integrationDEV_USER_ID
: User ID for "single user"/dev modeSECURE_USER_HEADER_ID
: Header that will have a UserId in itREDIS_HOST
: Host for redis cacheREDIS_PORT
: Port for redis cacheOPEN_FOOD_DIARY_API
: API root for OFDOPEN_FOOD_DIARY_API_HEADER
: Header that should contain the User Id for OFDCASSANDRA_CONTACT_POINTS
:;
seperated list of cassandra contact pointsCASSANDRA_LOCALDATACENTER
: the local datacenter for cassandraCASSANDRA_USER
: username for cassandraCASSANDRA_PASSWORD
: password for cassandra