How yashsahane-eng/employee-attendance works
This is a FastAPI employee attendance and analytics backend. Users and managers create employees, record or correct attendance, retrieve attendance, and request reports; administrators can inspect simplified query plans. The routes and their database operations live together in app/main.py, so the nodes distinguish product responsibilities rather than separate code modules. The excerpts show employee and attendance database calls; the README documents the broader endpoint set and MongoDB aggregation reports. Unsampled route internals are represented only at that documented level.
Main entry points: main.py FastAPI routes
Components 13
API and employee records
- FastAPI routes
app/main.py - Health check
app/main.py - Employee records
app/main.py
Attendance lifecycle
- Punch in and out
app/main.py - Manual corrections
app/main.py - Attendance lookup
app/main.py
Reports and query insights
- Employee monthly report
app/main.py - Department summary
app/main.py - Late leaderboard
app/main.py - Department trend
app/main.py - Query explain
app/main.py
Other components
- API users
- MongoDB
Connections 21
- API users → FastAPI routes: calls endpoints
README.md - FastAPI routes → Health check: routes health
README.md - FastAPI routes → Employee records: routes employee requests
README.md - FastAPI routes → Punch in and out: routes punch requests
README.md - FastAPI routes → Manual corrections: routes corrections
README.md - FastAPI routes → Attendance lookup: routes attendance queries
README.md - FastAPI routes → Employee monthly report: routes monthly reports
README.md - FastAPI routes → Department summary: routes summaries
README.md - FastAPI routes → Late leaderboard: routes leaderboard
README.md - FastAPI routes → Department trend: routes trends
README.md - FastAPI routes → Query explain: routes explain requests
README.md - Health check → MongoDB: pings
app/main.py - Employee records → MongoDB: reads and writes employees
app/main.py - Punch in and out → MongoDB: reads and writes attendance
app/main.py - Manual corrections → MongoDB: reads attendance
app/main.py - Attendance lookup → MongoDB: queries attendance
app/main.py - Employee monthly report → MongoDB: aggregates attendance
README.md - Department summary → MongoDB: aggregates attendance
README.md - Late leaderboard → MongoDB: aggregates attendance
README.md - Department trend → MongoDB: aggregates attendance
README.md - Query explain → MongoDB: explains queries
README.md