How kpal2207/smart-group-trip-coordination-platform works
Smart Group Trip Coordination is a React/FastAPI application for authenticated trip planning, shared expense tracking, dispute resolution, and settling group balances. Members register or sign in, create or join a trip, add expenses with equal or custom splits, review the ledger, and accept or dispute shares; hosts can review disputes, and members record settlements. The README also documents in-app notifications and automatic trip completion when balances clear. The graph follows shown frontend routing and sampled calls; backend request-to-service links not visible in excerpts are marked unverified or omitted.
Main entry points: App.jsx React routes · expense.py Expense operations · ExpenseDashboard.jsx Ledger dashboard · expense.js Expense HTTP client
Components 25
Web client
- React routes
frontend/src/App.jsx - Session context
frontend/src/context/AuthContext.jsx - Auth HTTP client
frontend/src/api/auth.js - Trip screens
frontend/src/pages - Trip HTTP client
frontend/src/api/trip.js - Expense entry
frontend/src/pages/AddExpense.jsx - Ledger dashboard
frontend/src/pages/ExpenseDashboard.jsx - Expense HTTP client
frontend/src/api/expense.js - Dispute review UI
frontend/src/components/DisputeModal.jsx - Settlement UI
frontend/src/components/SettleUpModal.jsx - Notification center
frontend/src/components/NotificationCenter.jsx
API application
- FastAPI application
backend/app/main.py - Authentication endpoints
backend/app/routers/auth.py - Trip endpoints
backend/app/routers/trip.py - Expense endpoints
backend/app/routers/expense.py - JWT user lookup
backend/app/dependencies/auth.py
Trip and expense domain
- Trip operations
backend/app/services/trip.py - Expense operations
backend/app/services/expense.py - Request and response schemas
backend/app/schemas/expense.py
Persistence and identity
- Auth utilities
backend/app/services/auth.py - Trip records
backend/app/models/trip.py - Ledger records
backend/app/models/expense.py - User records
backend/app/models/user.py - SQLAlchemy database
backend/app/database.py
Other components
- Trip member
Connections 30
- Trip member → React routes: uses
- React routes → Session context: provides session
frontend/src/App.jsx - React routes → Trip screens: routes to
frontend/src/App.jsx - React routes → Expense entry: routes to
frontend/src/App.jsx - React routes → Ledger dashboard: routes to
frontend/src/App.jsx - Session context → Auth HTTP client: calls
frontend/src/context/AuthContext.jsx - Expense entry → Expense HTTP client: loads and submits
frontend/src/pages/AddExpense.jsx - Ledger dashboard → Expense HTTP client: loads and acts
frontend/src/pages/ExpenseDashboard.jsx - Ledger dashboard → Dispute review UI: opens
frontend/src/pages/ExpenseDashboard.jsx - Ledger dashboard → Settlement UI: opens
frontend/src/pages/ExpenseDashboard.jsx - Trip screens → Trip HTTP client: requests trips
frontend/src/pages/CreateTrip.jsx - Auth HTTP client → Authentication endpoints: HTTP auth
- Trip HTTP client → Trip endpoints: HTTP trips
- Expense HTTP client → Expense endpoints: HTTP expenses
- Notification center → Expense HTTP client: notification requests
- FastAPI application → Authentication endpoints: registers
backend/app/main.py - FastAPI application → Trip endpoints: registers
backend/app/main.py - FastAPI application → Expense endpoints: registers
backend/app/main.py - JWT user lookup → Auth utilities: decodes token
backend/app/dependencies/auth.py - JWT user lookup → SQLAlchemy database: gets session
backend/app/dependencies/auth.py - JWT user lookup → User records: looks up user
backend/app/dependencies/auth.py - Expense operations → Ledger records: uses records
backend/app/services/expense.py - Expense operations → Trip records: uses trip records
backend/app/services/expense.py - Expense operations → User records: uses users
backend/app/services/expense.py - Expense operations → Request and response schemas: uses schemas
backend/app/services/expense.py - Trip records → SQLAlchemy database: inherits base
backend/app/models/trip.py - Ledger records → SQLAlchemy database: inherits base
backend/app/models/expense.py - Authentication endpoints → Auth utilities: uses auth
- Trip endpoints → Trip operations: delegates trip work
- Expense endpoints → Expense operations: delegates expense work