A React Native (Expo) + FastAPI demo that helps families of seniors in assisted living see staff updates and schedule visits, while facility staff post check-ins.
Auth uses bcrypt password hashing, JWTs and role dependencies, seeded with demo personas.
Residents, updates and visits come from backend/app/seed.py. Product scope:
SPEC.md.
From a cold clone:
git clone https://github.com/kladak/trinity-care.git
cd trinity-care
# Terminal A: API
cd backend
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
uvicorn app.main:app --reload --port 8000
# If port 8000 is taken: use --port 8010 and EXPO_PUBLIC_API_URL=http://localhost:8010
# Terminal B: Expo web
cd mobile
npm install
npx expo start --webOpen the Expo web URL (usually http://localhost:8081).
- Click Continue as Family (Jordan Lee).
- On the Family feed, scroll the updates for Margaret, Harold and Robert.
- Tap any update card to open Resident detail (notes, updates, visits).
- Go back and click Schedule visit.
- Select a resident, adjust the date and time, click Request visit.
- Confirm the success banner, then return to the feed.
- Sign out → Continue as Staff (Alex Rivera).
- Click Post update.
- Pick a resident, choose Check-in, type a short note, Publish to family feed.
- Return to the feed; the new note appears at the top.
- Optional: Residents → open a profile → confirm visits / updates.
- Health: http://localhost:8000/health
- Interactive docs: http://localhost:8000/docs
Demo password (if using /auth/token): demo1234
Emails: family@demo.trinitycare.local, staff@demo.trinitycare.local
| Layer | Stack |
|---|---|
| API | FastAPI, SQLAlchemy, SQLite, JWT (demo), seed on startup |
| Client | Expo SDK 57, React Native Web, React Navigation |
| Roles | family · facility_staff |
| Ops | /health, /ready, optional docker compose up for API |
trinity-care/
SPEC.md
README.md
docker-compose.yml
backend/ # FastAPI
mobile/ # Expo RN (web-capable)
.github/workflows # CI
cd backend
python3 -m venv .venv && source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
pytest -qcd mobile
npm install
# Optional: EXPO_PUBLIC_API_URL=http://localhost:8000
npx expo start --webdocker compose up --buildGitHub Actions runs backend pytest on push/PR to main.
| Persona | Role | |
|---|---|---|
| Jordan Lee | family@demo.trinitycare.local | family |
| Sam Chen | family2@demo.trinitycare.local | family |
| Alex Rivera | staff@demo.trinitycare.local | facility_staff |
| Priya Shah | staff2@demo.trinitycare.local | facility_staff |
Facility: Willow Grove Assisted Living, with five seeded residents, updates and visits.
MIT.