How mcrs101/interntrack works
InternTrack is an internship attendance and administration portal. Users sign in, view attendance summaries, record clock-in/out and breaks, and manage profile or work plans; administrators additionally manage users, settings, and attendance approvals. The frontend App coordinates authenticated API requests and presents these workflows. The backend routes requests through controllers and services to SQLite-backed repositories. The README provides only the product name, so domain capabilities are inferred from the source tree and sampled references; several unsampled route/controller links are left unverified.
Main entry points: App.jsx App coordinator · controllers Domain controllers · app.js HTTP server · database.js SQLite database
Components 23
Web experience
- App coordinator
interfaces/src/App.jsx - Sign-in view
interfaces/src/components/Login.jsx - Dashboard views
interfaces/src/components/DashboardSections.jsx - Attendance table
interfaces/src/components/EntryTable.jsx - Admin pages
interfaces/src/pages/UserManagement.jsx - Profile page
interfaces/src/pages/ProfilePage.jsx - Work plan editor
interfaces/src/components/WorkPlanModal.jsx - HTTP client
interfaces/src/lib/api.js
API and access
- HTTP server
backend/src/app.js - Auth routes
backend/src/routes/auth.routes.js - Entry routes
backend/src/routes/entry.routes.js - User routes
backend/src/routes/user.routes.js - Domain controllers
backend/src/controllers
Domain services
- Authentication
backend/src/services/auth.service.js - Attendance logic
backend/src/services/entry.service.js - User management
backend/src/services/user.service.js - Dashboard and plans
backend/src/services
Persistence
- SQLite database
backend/src/config/database.js - Session records
backend/src/repositories/session.repository.js - User records
backend/src/repositories/user.repository.js - Attendance records
backend/src/repositories/entry.repository.js - Work plan records
backend/src/repositories/work-plan.repository.js
Other components
- Portal user
Connections 29
- Portal user → App coordinator: uses
- App coordinator → HTTP client: requests data
interfaces/src/App.jsx - App coordinator → Sign-in view: renders
interfaces/src/App.jsx - App coordinator → Dashboard views: renders
interfaces/src/App.jsx - App coordinator → Admin pages: renders
interfaces/src/App.jsx - App coordinator → Profile page: renders
interfaces/src/App.jsx - App coordinator → Work plan editor: renders
interfaces/src/App.jsx - Dashboard views → Attendance table: renders
interfaces/src/components/DashboardSections.jsx - HTTP client → HTTP server: calls API
- HTTP server → Auth routes: mounts
backend/src/app.js - HTTP server → Entry routes: mounts
backend/src/app.js - HTTP server → User routes: mounts
backend/src/app.js - Auth routes → Domain controllers: dispatches
backend/src/routes/auth.routes.js - Entry routes → Domain controllers: dispatches
backend/src/routes/entry.routes.js - User routes → Domain controllers: dispatches
backend/src/routes/user.routes.js - Domain controllers → Authentication: delegates
backend/src/controllers/auth.controller.js - Domain controllers → Attendance logic: delegates
backend/src/controllers/entry.controller.js - Domain controllers → User management: delegates
backend/src/controllers/user.controller.js - Domain controllers → Dashboard and plans: delegates
backend/src/controllers/user.controller.js - Authentication → Session records: creates sessions
backend/src/services/auth.service.js - Authentication → User records: finds account
backend/src/services/auth.service.js - Attendance logic → Attendance records: reads and writes
backend/src/services/entry.service.js - User management → Session records: manages sessions
backend/src/services/user.service.js - User management → User records: manages users
backend/src/services/user.service.js - Dashboard and plans → Work plan records: uses plans
backend/src/services/work-plan.service.js - Session records → SQLite database: queries
backend/src/repositories/session.repository.js - User records → SQLite database: queries
backend/src/repositories/user.repository.js - Attendance records → SQLite database: queries
backend/src/repositories/entry.repository.js - Work plan records → SQLite database: queries