How anas17ahmed/task-management-system-sl-nestjs-assignment works
A NestJS task-management API supports task CRUD and filtering, user registration and profile operations, and JWT login. The principal workflow is an HTTP request entering a controller, which delegates to a service and returns a result; task state is held in memory, while user records use SQLite configured in memory. The graph includes authentication and exception handling. Task routes and service behavior are excerpted; user persistence and guard internals are not, so those implementation details are represented conservatively.
Main entry points: app.module.ts Application wiring · task.controller.ts Task routes · user.controller.ts User routes · user.service.ts User operations
Components 18
Application runtime
- Nest bootstrap
src/main.ts - Application wiring
src/app.module.ts - Root endpoint
src/app.controller.ts - Greeting service
src/app.service.ts
Task management
- Task routes
src/task/task.controller.ts - Task operations
src/task/task.service.ts - Task model
src/task/task.entity.ts
Users and authentication
- Login endpoint
src/auth/auth.controller.ts - Credential and token service
src/auth/auth.service.ts - Route guard
src/auth/auth.guard.ts - User routes
src/user/user.controller.ts - User operations
src/user/user.service.ts - Registration input
src/user/dto/create-user.dto.ts - User model
src/user/user.entity.ts
State and errors
- In-memory task list
src/task/task.service.ts - In-memory SQLite
src/app.module.ts - HTTP exception filter
src/common/filters/http-exception.filter.ts
Other components
- API client
Connections 26
- API client → Root endpoint: requests
src/app.controller.ts - API client → Task routes: uses task API
README.md - API client → Login endpoint: logs in
src/auth/auth.controller.ts - API client → User routes: manages users
src/user/user.controller.ts - Nest bootstrap → Application wiring: loads
src/main.ts - Application wiring → Root endpoint: registers
src/app.module.ts - Root endpoint → Greeting service: calls
src/app.controller.ts - Application wiring → In-memory SQLite: configures
src/app.module.ts - Application wiring → Task routes: registers module
src/app.module.ts - Application wiring → User routes: registers module
src/app.module.ts - Application wiring → Login endpoint: registers module
src/app.module.ts - Task routes → Task operations: delegates
src/task/task.controller.ts - Task operations → In-memory task list: reads and writes
src/task/task.service.ts - Task routes → Task model: accepts and returns
src/task/task.controller.ts - Task routes → Route guard: guards routes
src/task/task.controller.ts - Task routes → HTTP exception filter: uses filter
src/task/task.controller.ts - Login endpoint → Credential and token service: delegates
src/auth/auth.controller.ts - Credential and token service → User operations: looks up user
src/auth/auth.service.ts - Credential and token service → User model: validates credentials
src/auth/auth.service.ts - User routes → User operations: delegates
src/user/user.controller.ts - User routes → Registration input: accepts registration input
src/user/user.controller.ts - User routes → Route guard: guards profile routes
src/user/user.controller.ts - User routes → HTTP exception filter: uses filter
src/user/user.controller.ts - User operations → User model: creates and updates
src/user/user.service.ts - User operations → Registration input: creates from
src/user/user.service.ts - User operations → In-memory SQLite: persists users