How mohamediliasskaddar/app-gestion-qualite works
Project Type and Purpose
• This is a full-stack quality-management web application (“app-gestion-qualite”) composed of:
• A frontend Angular SPA under frontend/
• A backend Node.js + TypeScript REST API under backend/ using Express-style routes, controllers, and services
• A relational database accessed via Prisma ORM with schema and migrations under backend/prisma/
Main Architectural Components
a. Frontend Angular Application
• Core modules: app.component, routing (app.routes.ts), feature pages (home, landing-page, mesure-info, new-measurement, new-mold)
• Shared components: navbar
• Services layer calling backend APIs: api.service.ts, mesure.service.ts, moule.service.ts
• Utilities and environment configs
b. Backend REST API
• Entry point: server.ts
• Routing layer: files in src/routes/*.routes.ts define endpoint URLs
• Controller layer: src/controllers/*.controller.ts handle request/response logic
• Service layer: src/services/*.service.ts contain business logic and call Prisma client
• Utility helpers in src/utils/helpers.ts
• Prisma client import in src/prisma.ts
c. Database
• Defined by schema.prisma, managed through migrations (prisma/migrations/…)
• Prisma-generated client code under prisma/generated/prisma interacts with the actual RDBMS (PostgreSQL, MySQL, etc.)
d. Build & Deployment Artifacts
• Transpiled JS output in backend/dist/
• Configuration files: package.json, tsconfig.json, Angular CLI config (angular.json)
Component Relationships and Data Flows
• User → Browser → Angular SPA
• Angular Components ↔ Angular Services
• Angular Services —HTTP/JSON→ Backend API Endpoints (Routes)
• Routes → Controllers → Services
• Services → Prisma Client → Database
• Response path: Database → Prisma → Service → Controller → HTTP Response → Angular → UI
Architectural Patterns and Principles
• Layered (Presentation / API Routing / Controller / Service / Data Access)
• MVC-inspired on backend; modular feature pages on frontend
• Dependency Injection in Angular services
• Single-page application communicating over REST
• Schema-first data modeling with Prisma
Technologies and Frameworks
• Frontend: Angular, TypeScript, Angular Router, RxJS
• Backend: Node.js, Express-style routing, TypeScript, Prisma ORM
• Database: Relational DB (Postgres/MySQL) via Prisma
• Build tools: Angular CLI, tsc, npm/yarn
• Testing stubs: .spec.ts files in frontend services and components