How anushtha30/-it-support-ticket-system-full-stack-project works
This is a role-based IT support ticket portal. Students and faculty submit and track issues; admins review, assign, and advance tickets, while both sides exchange comments and use role-scoped statistics. The visible backend routes validate requests and delegate operations to storage; authentication supports Replit OIDC and development demo mode. The README documents additional ticket, comment, staff, and analytics capabilities, but their client-side wiring is not fully evidenced in the sampled excerpts, so those links are omitted or documented at the API boundary.
Main entry points: storage.ts Ticket storage · App.tsx App router · routes.ts Auth endpoints · replitAuth.ts OIDC and sessions
Components 20
Web portal
- App router
App.tsx - Landing page
landing.tsx - Ticket workspace
home.tsx - Ticket submission
ticket-form.tsx - Admin dashboard
admin.tsx - Ticket display
ticket-card.tsx - Ticket details
ticket-modal.tsx - Auth query hook
useAuth.ts - API query client
queryClient.ts
Ticket API
- Ticket endpoints
routes.ts - Comment endpoints
routes.ts - Stats endpoints
routes.ts - IT staff endpoint
routes.ts
Identity
- Auth endpoints
routes.ts - OIDC and sessions
replitAuth.ts - Demo identities
demo.ts
Persistence
- Ticket storage
storage.ts - PostgreSQL database
db.ts - Domain schema
schema.ts
Other components
- Students and staff
Connections 21
- Students and staff → App router: use portal
- App router → Auth query hook: checks identity
App.tsx - App router → Landing page: routes unauthenticated
App.tsx - App router → Ticket workspace: routes authenticated
App.tsx - Students and staff → Ticket endpoints: submit and track
- Ticket endpoints → Ticket storage: reads and updates tickets
routes.ts - Ticket endpoints → Domain schema: validates ticket input
routes.ts - Students and staff → Comment endpoints: exchange comments
- Comment endpoints → Ticket storage: reads and adds comments
routes.ts - Students and staff → Stats endpoints: view analytics
- Stats endpoints → Ticket storage: requests statistics
routes.ts - Students and staff → IT staff endpoint: admin lists staff
- IT staff endpoint → Ticket storage: requests staff list
routes.ts - Auth endpoints → OIDC and sessions: configures authentication
routes.ts - Auth endpoints → Demo identities: resolves demo users
routes.ts - Auth endpoints → Ticket storage: loads user profile
routes.ts - OIDC and sessions → Ticket storage: upserts profile
replitAuth.ts - Ticket storage → PostgreSQL database: queries database
storage.ts - Ticket submission → API query client: submits ticket
- Admin dashboard → API query client: manages tickets
- Ticket display → Ticket details: opens details