How aguzr10/dealerships-cars works
The README describes PostgreSQL schema provisioning and seed data as the repository’s product. The tree also contains a NestJS API scaffold: its controllers expose car and dealership routes, but the sampled services return placeholder strings rather than accessing the database. The API modules configure PostgreSQL connectivity, but no sampled evidence shows CRUD calls reaching it. Evidence for unsampled wiring is limited to the README and SOURCE INDEX references.
Main entry points: app.module.ts App configuration · cars.controller.ts Car routes · dealerships.controller.ts Dealership routes · car.entity.ts Car entity
Components 18
Database provisioning
- PostgreSQL
- Schema and seeds
db/init.sql - Compose setup
docker-compose.yml
NestJS API scaffold
- Application bootstrap
api/src/main.ts - App configuration
api/src/app.module.ts - Health greeting
api/src/app.controller.ts - Greeting service
api/src/app.service.ts - Car routes
api/src/cars/cars.controller.ts - Car service
api/src/cars/cars.service.ts - Car DTOs
api/src/cars/dto - Car entity
api/src/cars/entities/car.entity.ts - Car status
api/src/cars/entities/car-status.enums.ts - Dealership routes
api/src/dealerships/dealerships.controller.ts - Dealership service
api/src/dealerships/dealerships.service.ts - Dealership DTOs
api/src/dealerships/dto - Dealership entity
api/src/dealerships/entities/dealership.entity.ts
Other components
- Operator
- API client
Connections 20
- Operator → Compose setup: starts
README.md - Compose setup → PostgreSQL: starts database
README.md - Schema and seeds → PostgreSQL: initializes tables
README.md - Application bootstrap → App configuration: boots
api/src/main.ts - App configuration → Car routes: registers
api/src/app.module.ts - App configuration → Dealership routes: registers
api/src/app.module.ts - App configuration → PostgreSQL: configures connection
api/src/app.module.ts - App configuration → Health greeting: registers
api/src/app.module.ts - App configuration → Greeting service: provides
api/src/app.module.ts - API client → Car routes: requests routes
api/src/cars/cars.controller.ts - API client → Dealership routes: requests routes
api/src/dealerships/dealerships.controller.ts - API client → Health greeting: requests greeting
api/src/app.controller.ts - Health greeting → Greeting service: calls
api/src/app.controller.ts - Car routes → Car service: delegates
api/src/cars/cars.controller.ts - Car routes → Car DTOs: accepts
api/src/cars/cars.controller.ts - Dealership routes → Dealership service: delegates
api/src/dealerships/dealerships.controller.ts - Dealership routes → Dealership DTOs: accepts
api/src/dealerships/dealerships.controller.ts - Car entity → Dealership entity: references
api/src/cars/entities/car.entity.ts - Dealership entity → Car entity: references
api/src/dealerships/entities/dealership.entity.ts - Car entity → Car status: uses
api/src/cars/entities/car.entity.ts