How lucas-retanero/pi-repository works
Acervo Acadêmico Fatec is a web application for organizing and consulting Fatec Itaquera Integrator Projects. Its main workflow is authenticated project creation and management, followed by browsing projects and recording progress; professors can verify projects, while administrators manage users and courses. The application also supports favorites, notifications, semester awards, dashboards, and profiles. Edges are limited to relationships visible in excerpts, the SOURCE INDEX, or README; unsampled UI-to-API wiring is not asserted.
Main entry points: index.ts Database connection · route.ts Project commands · db-project-command-repository.ts Project command storage · db-project-repository.ts Project reading
Components 26
Access and accounts
- Sign-in experience
src/presentation/auth/auth-context.tsx - Better Auth client
src/infrastructure/auth/better-auth-auth-repository.ts - Session and auth
src/libs/auth.ts - User administration
src/app/api/admin/users/route.ts - Profile management
src/app/api/profile/route.ts
Project lifecycle
- Project commands
src/app/api/projects/route.ts - Create project use case
src/application/projects/create-project-use-case.ts - Project command storage
src/infrastructure/projects/db-project-command-repository.ts - Project reading
src/infrastructure/projects/db-project-repository.ts - Progress tracking
src/app/api/projects/[id]/progress/route.ts - Project verification
src/infrastructure/projects/db-project-verification-repository.ts - Project favorites
src/app/api/favorites/route.ts - Semester awards
src/app/api/semester-awards/route.ts - Public recommendations
src/app/api/projects/recommended/route.ts
Academic operations
- Course administration
src/app/api/admin/courses/route.ts - Course queries and rules
src/infrastructure/courses/course-queries.ts - Role dashboards
src/components/dashboard/DashboardPage.tsx - Notification access
src/app/api/notifications/route.ts - Task event notifications
src/infrastructure/notifications/notify-task-event.ts - Notification storage
src/infrastructure/notifications/db-notification-repository.ts
Persistence
- PostgreSQL schema
src/db/schema.ts - Database connection
src/db/index.ts
Other components
- Students, faculty, admins
- PostgreSQL (Neon)
- Microsoft Entra ID
- Email delivery
Connections 28
- Students, faculty, admins → Sign-in experience: signs in
README.md - Sign-in experience → Better Auth client: calls
src/presentation/auth/auth-context.tsx - Better Auth client → Microsoft Entra ID: starts social login
- Session and auth → Email delivery: sends reset email
src/libs/auth.ts - User administration → Course queries and rules: loads courses
src/app/api/admin/users/route.ts - User administration → Email delivery: sends account invite
- Profile management → Course queries and rules: looks up course
src/app/api/profile/route.ts - Project commands → Create project use case: invokes
src/app/api/projects/route.ts - Project commands → Project command storage: configures
src/app/api/projects/route.ts - Project commands → Task event notifications: notifies task events
src/app/api/projects/route.ts - Create project use case → Project command storage: persists project
- Progress tracking → Task event notifications: notifies changes
src/app/api/projects/[id]/progress/route.ts - Project favorites → Project reading: checks project
src/app/api/favorites/route.ts - Semester awards → Project reading: loads projects
src/app/api/semester-awards/route.ts - Course administration → Course queries and rules: uses course rules
src/app/api/admin/courses/route.ts - Notification access → Notification storage: reads and updates
src/app/api/notifications/route.ts - Task event notifications → Notification storage: creates records
src/infrastructure/notifications/notify-task-event.ts - Project command storage → Database connection: queries
src/infrastructure/projects/db-project-command-repository.ts - Project reading → Database connection: queries
src/infrastructure/projects/db-project-repository.ts - Project verification → Database connection: reads and writes
src/infrastructure/projects/db-project-verification-repository.ts - Notification storage → Database connection: reads and writes
src/infrastructure/notifications/db-notification-repository.ts - Database connection → PostgreSQL (Neon): connects
src/db/index.ts - PostgreSQL schema → PostgreSQL (Neon): defines tables
- Students, faculty, admins → Project commands: manages projects
- Students, faculty, admins → Progress tracking: updates progress
- Students, faculty, admins → Project favorites: saves favorites
- Students, faculty, admins → Role dashboards: views dashboard
- Students, faculty, admins → Public recommendations: browses awards