How aishwaryam990/infynux-task2-fullstack-auth works
This is a full-stack company member-management and private employee social platform. Company administrators register and authenticate, provision employees with temporary credentials, and manage company information; employees authenticate, change an initial password, then access their profile and company-scoped feed to post and engage. React portals call a NestJS API, whose controllers delegate domain operations to services and Prisma-backed persistence. The README documents the product capabilities; some frontend-to-API wiring and unsampled modules are not shown in excerpts, so those links are identified as documented or unverified rather than inferred from names.
Main entry points: prisma.service.ts Prisma client · CompanyPortal.jsx Company portal · App.jsx Personal portal · PostsSection.jsx Posts interface
Components 22
Web portals
- Personal portal
frontend/src/App.jsx - Company portal
frontend/src/components/CompanyPortal.jsx - Posts interface
frontend/src/components/PostsSection.jsx
Identity and profiles
- User auth routes
backend/src/auth/auth.controller.ts - User authentication
backend/src/auth/auth.service.ts - User profile routes
backend/src/users/users.controller.ts - User profiles
backend/src/users/users.service.ts
Company and employees
- Company auth routes
backend/src/companies/company-auth.controller.ts - Company authentication
backend/src/companies/company-auth.service.ts - Company dashboard
backend/src/companies/company.controller.ts - Company operations
backend/src/companies/company.service.ts - Employee routes
backend/src/employees/employee.controller.ts - Employee authentication
backend/src/employees/employee-auth.service.ts - Employee management
backend/src/employees/employee-management.service.ts
Feed and engagement
- Post routes
backend/src/posts/posts.controller.ts - Feed and posts
backend/src/posts/posts.service.ts - Admin post routes
backend/src/posts/admin-posts.controller.ts - Engagement routes
backend/src/posts/engagement/engagement.controller.ts - Likes and comments
backend/src/posts/engagement/engagement.service.ts
Persistence
- Prisma client
backend/src/prisma/prisma.service.ts - PostgreSQL
Other components
- Company or employee
Connections 29
- Company or employee → Personal portal: uses
README.md - Personal portal → Company portal: renders
frontend/src/App.jsx - Company portal → Posts interface: uses
frontend/src/components/CompanyPortal.jsx - Personal portal → User auth routes: calls auth API
- Personal portal → User profile routes: calls profile API
- Company portal → Company auth routes: calls company API
- Company portal → Company dashboard: calls management API
- Company portal → Employee routes: calls employee API
- Posts interface → Post routes: calls feed API
- Posts interface → Engagement routes: calls engagement API
- User auth routes → User authentication: delegates to
backend/src/auth/auth.controller.ts - User authentication → Prisma client: reads and writes
backend/src/auth/auth.service.ts - User profile routes → User profiles: delegates to
backend/src/users/users.controller.ts - User profiles → Prisma client: reads and writes
backend/src/users/users.service.ts - Company auth routes → Company authentication: delegates to
backend/src/companies/company-auth.controller.ts - Company authentication → Prisma client: reads and writes
backend/src/companies/company-auth.service.ts - Company dashboard → Company operations: delegates to
backend/src/companies/company.controller.ts - Company dashboard → Employee management: delegates to
backend/src/companies/company.controller.ts - Company operations → Prisma client: reads data
backend/src/companies/company.service.ts - Employee routes → Employee authentication: delegates to
backend/src/employees/employee.controller.ts - Employee routes → Employee management: delegates to
backend/src/employees/employee.controller.ts - Employee authentication → Prisma client: reads and writes
backend/src/employees/employee-auth.service.ts - Employee management → Prisma client: reads and writes
backend/src/employees/employee-management.service.ts - Post routes → Feed and posts: delegates to
backend/src/posts/posts.controller.ts - Feed and posts → Prisma client: reads and writes
backend/src/posts/posts.service.ts - Admin post routes → Feed and posts: delegates to
backend/src/posts/admin-posts.controller.ts - Engagement routes → Likes and comments: delegates to
backend/src/posts/engagement/engagement.controller.ts - Likes and comments → Prisma client: reads and writes
backend/src/posts/engagement/engagement.service.ts - Prisma client → PostgreSQL: persists data