How rionseekings/clemson-student-spending works
The repository collects Clemson student spending responses and computes aggregate spending statistics. The primary workflow is a student completing the survey, submitting it for validation and storage, then a data pipeline fetching responses, cleaning them, analyzing them, and updating an analytics cache. The README describes finding insights; visualization and email-related modules are present, but their behavior and connections are not established by the available excerpts. The landing page excerpt is still a Next.js starter page.
Main entry points: pipeline.py Analytics pipeline · page.tsx Spending survey · route.ts Submission API · supabase.ts Supabase client
Components 14
Response collection
- Spending survey
frontend/src/app/survey/page.tsx - Form controls
frontend/src/components/ui - Survey schema
frontend/src/lib/survey-schema.ts - Submission API
frontend/src/app/api/submit/route.ts - Supabase client
frontend/src/lib/supabase.ts - Survey responses
- Home page
frontend/src/app/page.tsx
Spending analysis
- Analytics pipeline
data/pipeline.py - Response cleaning
data/clean.py - Spending analysis
data/analyze.py - Analytics cache
Presentation modules
- Visualization
data/visualize.py - Email builder
data/email_builder.py
Other components
- Student
Connections 11
- Student → Spending survey: completes
frontend/src/app/survey/page.tsx - Spending survey → Form controls: renders
frontend/src/app/survey/page.tsx - Spending survey → Survey schema: validates with
frontend/src/app/survey/page.tsx - Spending survey → Submission API: posts to
frontend/src/app/survey/page.tsx - Submission API → Survey schema: validates with
frontend/src/app/api/submit/route.ts - Submission API → Supabase client: inserts via
frontend/src/app/api/submit/route.ts - Supabase client → Survey responses: writes
- Analytics pipeline → Survey responses: reads
data/pipeline.py - Analytics pipeline → Response cleaning: cleans with
data/pipeline.py - Analytics pipeline → Spending analysis: analyzes with
data/pipeline.py - Analytics pipeline → Analytics cache: updates
data/pipeline.py