How nish-mitha/qp-assessment works
Based on our analysis of the file tree and README, this project is a full-stack grocery booking system comprising two main services:
Backend Service (grocery-booking-api)
• Built on the NestJS framework.
• Utilizes TypeORM for managing a PostgreSQL database.
• Implements two main role-based endpoints for Admin and User operations.
Frontend Service (grocery-booking-app)
• Developed using Angular.
• Provides distinct user interfaces for both admin and user roles.
• Dockerized for container deployment alongside the API service.
a. Frontend (grocery-booking-app):
• This using a block labeled “Angular UI (grocery-booking-app)”.
• Sub-components or modules if needed (e.g., Admin Dashboard, User Booking Interface, Common components for header, dialogs, etc.)
b. Backend (grocery-booking-api):
• With a block labeled “NestJS API Service (grocery-booking-api)”.
• Inside, denote sub-modules like “Admin Module”, “User Module”, “Database Module”, “Common/Utils” (for filters, DTOs, swagger schemas).
• Existence of configuration files and environment setups (.env, docker configurations) that enable containerized deployments.
c. Database:
• A “PostgreSQL Database” block.
• Specific tables (tbl_grocery_items and tbl_cart) and mention that data operations are handled via TypeORM.
d. Additional Deployment/Containerization Layers:
• “Docker” containers enveloping backend and frontend services.
• Optionally, add cloud deployment services (Render for backend and ElephantSQL for the PostgreSQL database) to indicate live hosting.
Relationships and Data Flows
• How each component is deployed (Docker containers managed by docker-compose locally, Render/ElephantSQL in live environments).
Important Architectural Patterns and Technologies
• Point out the role-based split in the backend (admin vs. user endpoints).
• Modular separation in the NestJS API (modules for admin, user, database, and common functionalities).
• How the Angular frontend is structured with components, services, and routing that align with the project’s UI flow.
• Containerized architecture provided by Docker for both services, hinting at microservice separation even in a single repository.
Additional Specifics
• Under the “NestJS API Service” block, indicate sub-modules such as “Admin Module”, “User Module”, “Database Module”, and “Common (e.g., Filters, DTOs, Swagger Schemas)” to reflect the file structure.
• How the Docker Compose orchestration ties together both services for local development.