How devrod11/peersync works
PeerSync is a collaborative capstone-management platform: students and professors use a Flutter client to manage project work through a FastAPI API backed by Firebase. The principal workflow covers projects, groups, milestones, tasks, and submissions, with review, announcements, and notifications supporting supervision. Optional integrations synchronize deadlines and submission files, while professor OTP and email digests provide additional capabilities. Backend relationships are supported by excerpts or the README; the mobile application source and several backend modules were not sampled, so its internal client flow is not detailed.
Main entry points: main.py FastAPI app · auth.py Authentication and roles · tasks.py Tasks · submissions.py Submissions and review
Components 32
Client
- Flutter app
peersync_mobile
API and access
- FastAPI app
peersync_backend/app/main.py - Settings
peersync_backend/app/core/config.py - Authentication and roles
peersync_backend/app/dependencies/auth.py - Firebase access
peersync_backend/app/database/firebase.py - Login and OTP
peersync_backend/app/routers/auth.py - Professor OTP
peersync_backend/app/services/professor_otp_service.py - Professor sessions
peersync_backend/app/services/professor_session_service.py
Project workflow
- Projects
peersync_backend/app/routers/projects.py - Groups
peersync_backend/app/routers/groups.py - Milestones
peersync_backend/app/routers/milestones.py - Tasks
peersync_backend/app/routers/tasks.py - Task status
peersync_backend/app/services/task_status_service.py - Submissions and review
peersync_backend/app/routers/submissions.py
Communication
- Announcements
peersync_backend/app/routers/announcements.py - In-app notifications
peersync_backend/app/services/notification_service.py - Push delivery
peersync_backend/app/services/push_service.py - Email digests
peersync_backend/app/services/email_digest_service.py - Email delivery
peersync_backend/app/services/email_service.py
Integrations
- Calendar connection
peersync_backend/app/routers/google_calendar.py - Deadline sync
peersync_backend/app/services/calendar_sync_service.py - Calendar API client
peersync_backend/app/integrations/google_calendar.py - Drive connection
peersync_backend/app/routers/google_drive.py - Drive API client
peersync_backend/app/integrations/google_drive.py
Other components
- Student
- Professor
- Cloud Firestore
- Firebase Authentication
- Firebase Cloud Messaging
- Google Calendar
- Google Drive
- SendGrid
Connections 48
- Student → Flutter app: uses
- Professor → Flutter app: uses
- Flutter app → FastAPI app: HTTPS API
- FastAPI app → Login and OTP: registers routes
peersync_backend/app/main.py - FastAPI app → Projects: registers routes
peersync_backend/app/main.py - FastAPI app → Groups: registers routes
peersync_backend/app/main.py - FastAPI app → Milestones: registers routes
peersync_backend/app/main.py - FastAPI app → Tasks: registers routes
peersync_backend/app/main.py - FastAPI app → Submissions and review: registers routes
peersync_backend/app/main.py - FastAPI app → Announcements: registers routes
peersync_backend/app/main.py - FastAPI app → Calendar connection: registers routes
peersync_backend/app/main.py - FastAPI app → Drive connection: registers routes
peersync_backend/app/main.py - FastAPI app → Settings: configures CORS
peersync_backend/app/main.py - FastAPI app → Firebase access: initializes
peersync_backend/app/main.py - Firebase access → Settings: reads settings
peersync_backend/app/database/firebase.py - Firebase access → Cloud Firestore: creates client
peersync_backend/app/database/firebase.py - Authentication and roles → Firebase access: loads profile
peersync_backend/app/dependencies/auth.py - Authentication and roles → Firebase Authentication: verifies token
- Authentication and roles → Professor sessions: validates session
peersync_backend/app/dependencies/auth.py - Login and OTP → Professor OTP: uses OTP service
peersync_backend/app/routers/auth.py - Login and OTP → Professor sessions: creates session
peersync_backend/app/routers/auth.py - Professor OTP → Email delivery: sends code
peersync_backend/app/services/professor_otp_service.py - Professor sessions → Cloud Firestore: stores sessions
peersync_backend/app/services/professor_session_service.py - Projects → Authentication and roles: checks access
- Groups → Authentication and roles: checks access
peersync_backend/app/routers/groups.py - Milestones → Authentication and roles: checks access
- Tasks → Authentication and roles: checks access
peersync_backend/app/routers/tasks.py - Submissions and review → Authentication and roles: checks access
peersync_backend/app/routers/submissions.py - Announcements → Authentication and roles: checks access
peersync_backend/app/routers/announcements.py - Projects → Cloud Firestore: reads and writes
- Groups → Cloud Firestore: reads and writes
peersync_backend/app/routers/groups.py - Milestones → Cloud Firestore: reads and writes
- Tasks → Cloud Firestore: reads and writes
peersync_backend/app/routers/tasks.py - Submissions and review → Cloud Firestore: reads and writes
peersync_backend/app/routers/submissions.py - Tasks → Task status: updates status
peersync_backend/app/routers/tasks.py - Submissions and review → Task status: updates status
peersync_backend/app/routers/submissions.py - Submissions and review → Drive API client: manages files
peersync_backend/app/routers/submissions.py - Drive connection → Drive API client: calls
peersync_backend/app/routers/google_drive.py - Drive API client → Google Drive: manages files
- Tasks → Deadline sync: syncs deadlines
peersync_backend/app/routers/tasks.py - Calendar connection → Deadline sync: requests sync
peersync_backend/app/routers/google_calendar.py - Deadline sync → Calendar API client: calls
peersync_backend/app/services/calendar_sync_service.py - Calendar connection → Cloud Firestore: reads and writes
peersync_backend/app/routers/google_calendar.py - Calendar API client → Google Calendar: synchronizes events
- Announcements → In-app notifications: creates notifications
peersync_backend/app/routers/announcements.py - Announcements → Push delivery: sends push
peersync_backend/app/routers/announcements.py - In-app notifications → Cloud Firestore: stores notifications
- Push delivery → In-app notifications: uses notification data
peersync_backend/app/services/push_service.py