How shagun966/employee-portal works
This is an employee administration portal with both server-rendered account/employee workflows and a JWT authentication API. Users register or sign in; authenticated staff browse and filter employees, while Admins create, edit, and delete records. ASP.NET Core configures routing, authentication, and SQLite-backed persistence, and seeds initial accounts. The graph also preserves the forecast endpoint and the substantial domain/DTO modules. Relationships reflect the sampled controllers and startup wiring; unsampled views and the separate Netlify files are not connected speculatively.
Main entry points: ApplicationDbContext.cs EF data context · AuthController.cs JWT auth API · AccountController.cs Cookie account flow · EmployeesController.cs Employee management
Components 16
Application runtime
- ASP.NET startup
Program.cs - EF data context
Data/ApplicationDbContext.cs - SQLite database
- Account seeder
Data/DbSeeder.cs - Forecast endpoint
Controllers/WeatherForecastController.cs
Identity and access
- Cookie account flow
Controllers/AccountController.cs - JWT auth API
Controllers/AuthController.cs
Employee administration
- Employee management
Controllers/EmployeesController.cs
Domain and contracts
- Portal user
Models/Entities/User.cs - Employee record
Models/Entities/Employee.cs - Login request
Models/DTOs/LoginRequestDto.cs - Registration request
Models/DTOs/RegisterRequestDto.cs - Token response
Models/DTOs/AuthResponseDto.cs - Add employee DTO
Models/AddEmployeeDTO.cs - Update employee DTO
Models/UpdateEmployeeDTO.cs - Forecast model
WeatherForecast.cs
Connections 20
- ASP.NET startup → EF data context: configures
Program.cs - ASP.NET startup → Account seeder: runs seed
Program.cs - ASP.NET startup → SQLite database: configures SQLite
Program.cs - EF data context → Employee record: maps entity
Data/ApplicationDbContext.cs - EF data context → Portal user: maps entity
Data/ApplicationDbContext.cs - Account seeder → EF data context: seeds accounts
Data/DbSeeder.cs - Cookie account flow → EF data context: reads and writes
Controllers/AccountController.cs - Cookie account flow → Login request: accepts
Controllers/AccountController.cs - Cookie account flow → Registration request: accepts
Controllers/AccountController.cs - Cookie account flow → Portal user: authenticates users
Controllers/AccountController.cs - JWT auth API → EF data context: reads and writes
Controllers/AuthController.cs - JWT auth API → Login request: accepts
Controllers/AuthController.cs - JWT auth API → Registration request: accepts
Controllers/AuthController.cs - JWT auth API → Portal user: authenticates users
Controllers/AuthController.cs - JWT auth API → Token response: returns token
Controllers/AuthController.cs - Employee management → EF data context: reads and writes
Controllers/EmployeesController.cs - Employee management → Add employee DTO: accepts
Controllers/EmployeesController.cs - Employee management → Update employee DTO: accepts
Controllers/EmployeesController.cs - Employee management → Employee record: manages records
Controllers/EmployeesController.cs - Forecast endpoint → Forecast model: uses model
Controllers/WeatherForecastController.cs