A health triage system to help local communities in Ghana access early health care.
&& cd health-triage
npm run install:all
cp server/.env.example server/.env
# Edit .env with secrets and SMTP
npm run build
# Process manager
npm install -g pm2
cd server && pm2 start dist/index.js --name health-triage
pm2 save && pm2 startup
```
Put **Nginx** in front with HTTPS (Let's Encrypt):
```nginx
server {
listen 443 ssl;
server_name triage.example.org;
location / {
proxy_pass
127.0.0.1;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
```
### Option C — Docker
```dockerfile
# Dockerfile (place in health-triage/)
FROM node:20-alpine
WORKDIR /app
COPY . .
RUN npm run install:all && npm run build
ENV PORT=3001
EXPOSE 3001
CMD ["npm", "start"]
```
```bash
docker build -t health-triage .
docker run -p 3001:3001 -v triage-data:/app/server/data --env-file server/.env health-triage
```
### PWA install (field workers)
After deploy, open the site in Chrome/Edge → **Install app**. The triage flow works offline after first load.
## WHO references
- WHO Malaria Guidelines 2023
- WHO IMCI / iCCM fever and danger signs
- WHO dengue clinical management
> **Disclaimer:** Decision-support tool for hackathon/demo. Not a medical device. Always follow national treatment protocols and qualified clinical judgment.
## Project structure
```
health-triage/
├── client/ # React PWA
│ ├── src/
│ │ ├── i18n/ # Translations (en, tw, fr, es)
│ │ ├── lib/ # Triage engine, API, offline queue
│ │ └── pages/ # Home, Triage, Admin
│ └── vite.config.ts
├── server/ # Express API
│ └── src/
│ ├── triage/ # WHO engine (server-side validation)
│ ├── privacy.ts
│ └── notifications.ts
└── README.md
```
## Environment variables
See `server/.env.example` for full list.
## License
MIT — hackathon use.
=======
# SWIFT-CARE
A health triage system to help local communities in Ghana access early health care.
>>>>>>> 7420bba20dd457d0b67a9da331a5d3e72b5e483b