How iftiurhossen11/losttrack works
LostTrack is a campus lost-and-found and environmental-issue web app. The main journey is a campus user registering or signing in, creating and locating a report, then following lost/found matches or issue progress; claims, staff tasks, and administrator review support resolution. The graph separates frontend experience, request and identity handling, report workflows, and persistence/location services. Edges rely on the shown imports, calls, and README; some frontend and route details were not sampled, so those connections are omitted.
Main entry points: routes.js API routes · auth.js Accounts and sessions · database.js Application data · server.js HTTP server
Components 21
Campus web app
- Web interface
frontend/pages/index.html - Client app
frontend/assets/js/app.js - Language support
frontend/assets/js/language.js - Boundary data
frontend/assets/data/bangladesh-boundary.json
HTTP and identity
- HTTP server
backend/src/server.js - API routes
backend/src/routes.js - HTTP utilities
backend/src/http-utils.js - Accounts and sessions
backend/src/auth.js
Report workflows
- Report state rules
backend/src/report-state.js - Validation and matching
backend/src/report-matching.js - Claims and review
backend/src/routes.js - Staff task progress
backend/src/report-state.js - Administration
backend/src/routes.js
Data and location
- Runtime configuration
backend/src/config.js - Application data
backend/src/database.js - Location search
backend/src/location-search.js - Boundary checks
backend/src/bangladesh-boundary.js
Other components
- Campus user
- Nominatim
- Supabase
- Map tile provider
Connections 22
- Campus user → Web interface: uses
README.md - Web interface → Client app: loads
README.md - Client app → Language support: uses
README.md - HTTP server → API routes: dispatches
backend/src/server.js - HTTP server → Accounts and sessions: provisions admin
backend/src/server.js - HTTP server → Application data: initializes
backend/src/server.js - API routes → Accounts and sessions: authenticates
backend/src/routes.js - API routes → HTTP utilities: uses
backend/src/routes.js - API routes → Application data: reads and writes
backend/src/routes.js - API routes → Report state rules: merges state
backend/src/routes.js - API routes → Location search: searches places
backend/src/routes.js - API routes → Claims and review: handles claims
backend/src/routes.js - API routes → Administration: handles admin
backend/src/routes.js - Accounts and sessions → Application data: reads and writes
backend/src/auth.js - Accounts and sessions → Validation and matching: validates email
backend/src/auth.js - Report state rules → Validation and matching: validates and scores
backend/src/report-state.js - Report state rules → Staff task progress: updates tasks
backend/src/report-state.js - Location search → Boundary checks: filters results
backend/src/location-search.js - Boundary checks → Boundary data: loads polygons
backend/src/bangladesh-boundary.js - Location search → Nominatim: queries
backend/src/location-search.js - Application data → Supabase: persists state
README.md - Client app → Map tile provider: displays map tiles
README.md