How zanhzanhzanh/finalcapstone-fiverr-web-app works
Main Components
• Application Entry: Start with the core NestJS application entry point (src/main.ts), which boots up the Nest application.
• Modules: Represent each NestJS module as a distinct component. This includes Auth, Comment, Job, Job Rental, Job Type Details, Job Type, and User modules. They serve as the principal building blocks encapsulating specific concerns.
• Common/Utility Components: Include shared utilities and helpers present in the common and util directories.
• Configuration and Deployment: Include Dockerfile and docker-compose.yml, as well as Nest CLI and environment configuration files which dictate project setup done outside of the runtime code.
Relationships and Interactions
• That the main NestJS application (bootstrap in src/main.ts) integrates all the modules using the App Module (src/app.module.ts).
• For authentication, illustrate that the Auth module uses strategies (local and JWT) with guard patterns that intercept and validate credentials before allowing access to secured resources.
• Database as an external component that is accessed by the Prisma service. Connect this with all modules that require data persistence (e.g., Comment, Job, User modules).
Architectural Patterns and Technologies
• Modular design: Group components by the NestJS module.
• Layers: Separate presentation (controllers), business logic (services), data access (Prisma), and configuration (modules, environment files).
• Dependency Injection: Implicitly indicate that NestJS uses dependency injection, where the App Module injects and bundles the different modules.
• Containerization: Represent the Docker container, which encapsulates the application along with the execution environment.
Putting It All Together
• Elements are clearly labeled with descriptive text and legends as necessary.