Point of Care Tool
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
- Authentication is provided with Firebase
- Node.js for running locally
This project requires Firebase authentication credentials provided in .env file. The variables needed are:
REACT_APP_FIREBASE_APIKEY
REACT_APP_FIREBASE_AUTHDOMAIN
REACT_APP_FIREBASE_DATABASEURL
REACT_APP_FIREBASE_PROJECTID
REACT_APP_FIREBASE_STORAGEBUCKET
REACT_APP_FIREBASE_MESSAGINGSENDERID
REACT_APP_FIREBASE_APPID
REACT_APP_FIREBASE_MEASUREMENTID
You can create new users in the Firebase console.
In order to provide access to certain named wards a following record needs to be added in the Firebase database after user was created:
userSettings\{userID}\wards
with a comma-separated list of Wards.
TRACT factors, questions and definitions can be adjusted in data\survey.detail.json
file before building the application.
A step by step series of examples that tell you how to get a development env running
Install Node.js packages
npm install
Run application in development mode
npm run dev
For deployment you need some Http Server (nginx, apache, ...)
- Node.js
npm run build