69 lines
2.4 KiB
Markdown
69 lines
2.4 KiB
Markdown
# 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
|
|
bash deploy/build-release.sh --output ./healthapp-release
|
|
```
|
|
|
|
On Windows, use PowerShell instead:
|
|
|
|
```powershell
|
|
.\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.
|
|
|
|
**Ubuntu 24.04 / Debian 12 or 13** (also the macOS command):
|
|
|
|
```bash
|
|
sudo bash install.sh --services all --host 192.168.1.20
|
|
```
|
|
|
|
**Windows**, from an administrator PowerShell:
|
|
|
|
```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](deploy/INSTALLATION.md) for details and distributed deployment.
|
|
|
|
## 3. Run and use
|
|
|
|
Services start automatically after installation and on boot.
|
|
|
|
1. On a client computer, trust the generated public `healthapp-ca.crt` certificate.
|
|
2. Test the API at `https://192.168.1.20:5443/api/measurement-guidance`.
|
|
3. 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`
|
|
4. Use `POST /api/authentication/login` with `accountId` and `password`; send the
|
|
returned `accessToken` as a Bearer token for protected requests.
|
|
|
|
On Linux, check or restart a service with:
|
|
|
|
```bash
|
|
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](src/README.md) for available endpoints.
|