How nicolasnunez05/proyecto-aws-eks-production-ai-platform works
GpuChile is a GPU e-commerce platform with a React storefront and FastAPI API. The main user flow is browsing GPUs, adding items to a session-based cart, and receiving catalog-backed AI recommendations; users can also register or log in, and the API supports image uploads. The README documents PostgreSQL/pgvector, Redis caching, S3 image storage with asynchronous Lambda processing, and Prometheus monitoring. Sampled code confirms the API entry point, AI retrieval/generation, S3 operations, and frontend cart/catalog calls; some route-level wiring is documented but not sampled.
Main entry points: main.py API Entry · ai_service.py RAG Service · database.py DB Access · App.tsx React Storefront
Components 22
Storefront
- React Storefront
apps/frontend/src/App.tsx - GPU Pages
apps/frontend/src/pages/HomePage.tsx - GPU Client
apps/frontend/src/services/gpu.service.ts - Cart State
apps/frontend/src/context/CartContext.tsx - Cart Client
apps/frontend/src/services/cart.service.ts
Backend API
- API Entry
apps/backend/app/main.py - GPU Routes
apps/backend/app/api/routes/gpus.py - Auth Routes
apps/backend/app/api/routes/auth.py - Cart Routes
apps/backend/app/api/routes/cart.py - Image Routes
apps/backend/app/api/routes/images.py - RAG Service
apps/backend/app/services/ai_service.py
Data Services
- DB Access
apps/backend/app/db/database.py - PostgreSQL pgvector
- Redis Cache
- S3 Service
apps/backend/app/services/s3_service.py - GPU and User Models
apps/backend/app/models/gpu.py
External Integrations
- Groq Llama
- Embedding Model
- Amazon S3
- Image Resizer
lambda/image-resizer/lambda_function.py - Prometheus
Other components
- Shopper
Connections 25
- Shopper → React Storefront: uses
- React Storefront → GPU Pages: renders
- GPU Pages → GPU Client: requests catalog
- GPU Client → API Entry: calls API
- React Storefront → Cart State: updates cart
- Cart State → Cart Client: requests cart
- Cart Client → API Entry: calls API
- API Entry → GPU Routes: dispatches
- API Entry → Auth Routes: dispatches
- API Entry → Cart Routes: dispatches
- API Entry → Image Routes: dispatches
- API Entry → RAG Service: calls
- GPU Routes → DB Access: queries
- Auth Routes → DB Access: queries and writes
- Cart Routes → DB Access: accesses data
- Cart Routes → Redis Cache: caches cart
- DB Access → PostgreSQL pgvector: reads and writes
- GPU and User Models → PostgreSQL pgvector: maps records
- RAG Service → Embedding Model: embeds queries
- RAG Service → PostgreSQL pgvector: retrieves products
- RAG Service → Groq Llama: generates response
- Image Routes → S3 Service: uploads images
- S3 Service → Amazon S3: stores objects
- Amazon S3 → Image Resizer: triggers processing
- Prometheus → API Entry: scrapes metrics