HealthApp prototype
A REST/JSON backend with five independent services. There is no web interface.
1. Compile and package
Install the .NET 10 SDK on the build computer. From this repository's root, run:
bash deploy/build-release.sh --output ./healthapp-release
On Windows, use PowerShell instead:
.\deploy\build-release.ps1 -Output .\healthapp-release
The script compiles the application and packages its installer. The output directory
must not already exist. Copy healthapp-release to the test computer.
2. Install
Open a terminal inside the copied release directory. Replace 192.168.1.20 with
the test computer's reachable IP address or DNS name.
Debian/Ubuntu-based Linux with systemd (also the macOS command):
sudo bash install.sh --services all --host 192.168.1.20
Windows, from an administrator PowerShell:
powershell -NoProfile -ExecutionPolicy Bypass -File .\install.ps1 -Services all -HostName 192.168.1.20
Internet access is required to download missing dependencies. The installer provisions the runtime, PostgreSQL, databases, credentials, HTTPS and configuration, then starts and verifies the services. Existing installations are not overwritten.
Native service installation still needs validation on the target operating systems; see the installation guide for details and distributed deployment.
3. Run and use
Services start automatically after installation and on boot.
- On a client computer, trust the generated public
healthapp-ca.crtcertificate. - Test the API at
https://192.168.1.20:5443/api/measurement-guidance. - Retrieve the generated login details from
accounts.json:- Linux:
/var/lib/healthapp-installation/deployment/accounts.json - Windows:
%ProgramData%\HealthApp\deployment\accounts.json - macOS:
/Library/Application Support/HealthApp/deployment/accounts.json
- Linux:
- Use
POST /api/authentication/loginwithaccountIdandpassword; send the returnedaccessTokenas a Bearer token for protected requests.
On Linux, check or restart a service with:
sudo systemctl status healthapp-api-gateway
sudo systemctl restart healthapp-api-gateway
Other service names are healthapp-patient-profile, healthapp-observation,
healthapp-insights and healthapp-health-overview.
See API documentation for available endpoints.
For JMeter scenarios and four-hour energy runs, see the workload guide.