8000 GitHub - kladak/trinity-care: Trinity Care demonstrates how families can connect with senior care facilities using Expo and FastAPI. · GitHub
[go: up one dir, main page]

Skip to content

About

Trinity Care demonstrates how families can connect with senior care facilities using Expo and FastAPI.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

Trinity Care

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.


Running the demo

From a cold clone:

0. Prerequisites (once)

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 --web

Open the Expo web URL (usually http://localhost:8081).

1. Family path (~45s)

  1. Click Continue as Family (Jordan Lee).
  2. On the Family feed, scroll the updates for Margaret, Harold and Robert.
  3. Tap any update card to open Resident detail (notes, updates, visits).
  4. Go back and click Schedule visit.
  5. Select a resident, adjust the date and time, click Request visit.
  6. Confirm the success banner, then return to the feed.

2. Staff path (~30s)

  1. Sign out → Continue as Staff (Alex Rivera).
  2. Click Post update.
  3. Pick a resident, choose Check-in, type a short note, Publish to family feed.
  4. Return to the feed; the new note appears at the top.
  5. Optional: Residents → open a profile → confirm visits / updates.

Optional API check

Demo password (if using /auth/token): demo1234
Emails: family@demo.trinitycare.local, staff@demo.trinitycare.local


Architecture

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

Runbook

Backend

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 -q

Mobile (web)

cd mobile
npm install
# Optional: EXPO_PUBLIC_API_URL=http://localhost:8000
npx expo start --web

Docker (API only)

docker compose up --build

CI

GitHub Actions runs backend pytest on push/PR to main.


Seed personas (synthetic)

Persona Email 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.


License

MIT.

About

Trinity Care demonstrates how families can connect with senior care facilities using Expo and FastAPI.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0