How tethrers-group-6/tethr works
Tethr is a web app for private friend-group Circles that combines shared expenses, balances and payments with event planning and RSVPs. Users register or log in, create or join Circles, record expenses (optionally tied to events), and review balances or confirm payments; the dashboard summarizes activity and upcoming items. Express route modules handle the domain workflows, with PostgreSQL-backed queries and focused split, validation and calendar-service layers. Google Calendar mirroring is optional. Evidence is limited to the README, source index and excerpts; unsampled client/API wiring is not asserted.
Main entry points: index.js Express app · expenses.js Expense recording · balances.js Balances and payments · events.js Events and RSVPs
Components 22
Web entry
- Express app
ProjectSourceCode/index.js - Login and registration
ProjectSourceCode/src/routes/login.js - Registration validation
ProjectSourceCode/src/validateRegistration.js - Profile management
ProjectSourceCode/src/routes/profile.js - Profile validation
ProjectSourceCode/src/validateProfileUpdate.js - Dashboard
ProjectSourceCode/src/routes/dashboard.js
Circle workflows
- Circle management
ProjectSourceCode/src/routes/circles.js - Invite validation
ProjectSourceCode/src/validateInviteCode.js - Circle detail
ProjectSourceCode/src/routes/circleDetail.js
Money workflows
- Expense recording
ProjectSourceCode/src/routes/expenses.js - Amount parsing
ProjectSourceCode/src/parseAmount.js - Split calculation
ProjectSourceCode/src/computeSplits.js - Balances and payments
ProjectSourceCode/src/routes/balances.js - People balance summary
ProjectSourceCode/src/summarizeBalances.js - Payment validation
ProjectSourceCode/src/validatePayment.js
Calendar workflows
- Events and RSVPs
ProjectSourceCode/src/routes/events.js - Event validation
ProjectSourceCode/src/validateEvent.js - Calendar data store
ProjectSourceCode/src/services/calendarStore.js - Google Calendar sync
ProjectSourceCode/src/services/gcal.js
Other components
- Tethr user
- PostgreSQL
- Google Calendar
Connections 28
- Tethr user → Express app: uses
README.md - Express app → Login and registration: mounts routes
ProjectSourceCode/index.js - Express app → Dashboard: mounts routes
ProjectSourceCode/index.js - Express app → Circle management: mounts routes
ProjectSourceCode/index.js - Express app → Profile management: mounts routes
ProjectSourceCode/index.js - Express app → Events and RSVPs: mounts routes
ProjectSourceCode/index.js - Express app → Expense recording: mounts routes
ProjectSourceCode/index.js - Express app → Circle detail: mounts routes
ProjectSourceCode/index.js - Express app → Balances and payments: mounts routes
ProjectSourceCode/index.js - Login and registration → Registration validation: validates with
- Profile management → Profile validation: validates with
ProjectSourceCode/src/routes/profile.js - Circle management → Invite validation: validates with
ProjectSourceCode/src/routes/circles.js - Circle management → PostgreSQL: reads and writes
ProjectSourceCode/src/routes/circles.js - Circle detail → PostgreSQL: reads
- Profile management → PostgreSQL: reads and writes
- Login and registration → PostgreSQL: reads and writes
- Dashboard → PostgreSQL: queries
ProjectSourceCode/src/routes/dashboard.js - Expense recording → Amount parsing: parses amount
ProjectSourceCode/src/routes/expenses.js - Expense recording → Split calculation: computes splits
ProjectSourceCode/src/routes/expenses.js - Expense recording → PostgreSQL: writes expense
ProjectSourceCode/src/routes/expenses.js - Balances and payments → People balance summary: summarizes
ProjectSourceCode/src/routes/balances.js - Balances and payments → Payment validation: validates payment
ProjectSourceCode/src/routes/balances.js - Balances and payments → PostgreSQL: reads and writes
ProjectSourceCode/src/routes/balances.js - Events and RSVPs → Event validation: validates events
ProjectSourceCode/src/routes/events.js - Events and RSVPs → Calendar data store: uses store
ProjectSourceCode/src/routes/events.js - Calendar data store → PostgreSQL: reads and writes
ProjectSourceCode/src/services/calendarStore.js - Events and RSVPs → Google Calendar sync: syncs optionally
ProjectSourceCode/src/routes/events.js - Google Calendar sync → Google Calendar: mirrors events
ProjectSourceCode/src/services/gcal.js