How mrpee309/deallakay works
DealLakay is a Haitian marketplace for buying and selling technology products, with related seller, supplier, technician, request, social, alert, and transport features. Users interact through a React frontend and FastAPI backend, whose routers handle domain operations against shared MongoDB-backed state. The excerpts confirm authentication utilities, shared authorization, server router registration, admin operations, and driver workflows; frontend-to-backend wiring and several router internals were not shown, so those relationships are left unverified.
Main entry points: server.py FastAPI server · App.js Web application · auth.py Authentication endpoints · requests.py Buyer requests
Components 29
Marketplace frontend
- Web application
frontend/src/App.js - Marketplace discovery
frontend/src/pages/Home.jsx - Product browsing
frontend/src/pages/Browse.jsx - Product details
frontend/src/pages/ProductPage.jsx - Requests interface
frontend/src/pages/Requests.jsx - Seller workspace
frontend/src/pages/SellerDashboard.jsx - Technician workspace
frontend/src/pages/TechnicianDashboard.jsx - Admin workspace
frontend/src/pages/AdminDashboard.jsx - API client
frontend/src/lib/api.js
Backend API
- FastAPI server
backend/server.py - Product listings
backend/routers/products.py - Buyer requests
backend/routers/requests.py - Seller profiles
backend/routers/sellers.py - Business profiles
backend/routers/businesses.py - Supplier profiles
backend/routers/suppliers.py - Technician services
backend/routers/technicians.py - Transport services
backend/routers/transport.py - Social features
backend/routers/social.py - User alerts
backend/routers/alerts.py - Administration
backend/routers/admin.py
Identity and security
- Authentication endpoints
backend/routers/auth.py - Token and password tools
backend/auth.py - Shared auth and database
backend/shared.py - Request protections
backend/security.py - Email delivery
backend/email_service.py
Marketplace operations
- MongoDB
- Category and site defaults
backend/seed_data.py
Other components
- Marketplace users
- Brevo email service
Connections 39
- Marketplace users → Web application: use
- Web application → Marketplace discovery: renders
- Web application → Product browsing: routes to
- Web application → Product details: routes to
- Web application → Requests interface: routes to
- Web application → Seller workspace: routes to
- Web application → Technician workspace: routes to
- Web application → Admin workspace: routes to
- Web application → API client: uses
- API client → FastAPI server: HTTP requests
- FastAPI server → Authentication endpoints: registers
backend/server.py - FastAPI server → User alerts: registers
backend/server.py - FastAPI server → Supplier profiles: registers
backend/server.py - FastAPI server → Transport services: registers
backend/server.py - FastAPI server → Product listings: routes to
backend/server.py - FastAPI server → Buyer requests: routes to
backend/server.py - FastAPI server → Seller profiles: routes to
backend/server.py - FastAPI server → Business profiles: routes to
backend/server.py - FastAPI server → Technician services: routes to
backend/server.py - FastAPI server → Social features: routes to
backend/server.py - FastAPI server → Administration: routes to
backend/server.py - Authentication endpoints → Token and password tools: creates tokens
backend/routers/auth.py - Shared auth and database → Token and password tools: decodes tokens
backend/shared.py - Authentication endpoints → Email delivery: sends verification
backend/routers/auth.py - Buyer requests → Email delivery: uses email
backend/email_service.py - Authentication endpoints → Request protections: rate limits
backend/routers/auth.py - Shared auth and database → MongoDB: reads users
backend/shared.py - Product listings → MongoDB: reads and writes
- Buyer requests → MongoDB: reads and writes
- Seller profiles → MongoDB: reads and writes
- Business profiles → MongoDB: reads and writes
- Supplier profiles → MongoDB: reads and writes
- Technician services → MongoDB: reads and writes
- Transport services → MongoDB: reads and writes
- Social features → MongoDB: reads and writes
- User alerts → MongoDB: reads and writes
- Administration → MongoDB: reads and writes
backend/routers/admin.py - FastAPI server → Category and site defaults: loads defaults
backend/server.py - Email delivery → Brevo email service: sends email
backend/email_service.py