How mg7434209-hue/geseticaret works
GES MARKETİM is a solar-product dropshipping storefront with an admin catalog and order-management interface. The main customer journey is browsing products, adding them to a persistent cart, checking out, and viewing order confirmation; the backend validates prices and records orders. Separate capabilities include customer accounts, admin catalog and supplier management, supplier CSV synchronization, payment processing, SEO/sitemaps, and an assistant/calculation service. Edges are limited to excerpted imports/calls and explicit README statements; several route internals are unsampled.
Main entry points: index.ts Express API · admin.ts Admin routes · schema.ts Commerce database · orders.ts Order handling
Components 25
Storefront
- Storefront routes
frontend/src/App.tsx - Product browsing
frontend/src/pages/Products.tsx - Product UI
frontend/src/components/product-ui.tsx - Persistent cart
frontend/src/cart/CartContext.tsx - Checkout
frontend/src/pages/Checkout.tsx - Customer sessions
frontend/src/auth/CustomerContext.tsx - API client
frontend/src/lib/api.ts
Commerce API
- Express API
backend/src/index.ts - Catalog routes
backend/src/routes/catalog.ts - Order handling
backend/src/routes/orders.ts - Account routes
backend/src/routes/account.ts - Payment routes
backend/src/routes/payment.ts
Admin and Catalog Ops
- Admin interface
frontend/src/admin/AdminProducts.tsx - Admin routes
backend/src/routes/admin.ts - Supplier CSV sync
backend/src/lib/sync/engine.ts
Data and Services
- Price resolution
backend/src/db/resolvePrice.ts - Commerce database
backend/src/db/schema.ts - Admin authentication
backend/src/lib/auth.ts - Customer authentication
backend/src/lib/customerAuth.ts
Discovery and SEO
- SEO metadata
frontend/src/lib/seo.ts - Dynamic sitemap
backend/src/routes/seo.ts - Solar assistant
backend/src/routes/asistan.ts
Other components
- Shopper
- iyzico
- Image hosting
Connections 37
- Shopper → Storefront routes: browses
frontend/src/App.tsx - Storefront routes → Product browsing: routes to
frontend/src/App.tsx - Product browsing → API client: requests catalog
frontend/src/lib/api.ts - Product browsing → Product UI: renders products
frontend/src/pages/Products.tsx - Product UI → Persistent cart: adds items
frontend/src/components/product-ui.tsx - Persistent cart → API client: refreshes products
frontend/src/cart/CartContext.tsx - Checkout → Persistent cart: uses cart
frontend/src/pages/Checkout.tsx - Checkout → API client: creates order
frontend/src/lib/api.ts - Checkout → Customer sessions: uses profile
frontend/src/pages/Checkout.tsx - API client → Express API: HTTP requests
README.md - Express API → Catalog routes: mounts routes
backend/src/index.ts - Express API → Order handling: mounts routes
backend/src/index.ts - Express API → Account routes: mounts routes
backend/src/index.ts - Express API → Payment routes: mounts routes
backend/src/index.ts - Express API → Admin routes: mounts routes
backend/src/index.ts - Order handling → Commerce database: reads and writes
backend/src/routes/orders.ts - Catalog routes → Commerce database: reads catalog
- Order handling → Price resolution: validates prices
- Order handling → Customer authentication: checks session
backend/src/routes/orders.ts - Customer sessions → API client: calls account API
frontend/src/auth/CustomerContext.tsx - Account routes → Commerce database: reads and writes
- Account routes → Customer authentication: uses sessions
- Admin interface → Admin routes: admin requests
README.md - Admin routes → Admin authentication: guards routes
README.md - Admin routes → Commerce database: manages catalog
backend/src/routes/admin.ts - Admin routes → Price resolution: resolves prices
backend/src/routes/admin.ts - Admin routes → Supplier CSV sync: runs imports
backend/src/routes/admin.ts - Supplier CSV sync → Price resolution: resolves prices
backend/src/lib/sync/engine.ts - Supplier CSV sync → Commerce database: updates catalog
backend/src/lib/sync/engine.ts - Admin routes → Image hosting: uploads images
- Payment routes → iyzico: verifies callback
- Order handling → iyzico: starts card checkout
- Storefront routes → SEO metadata: sets page metadata
README.md - Express API → Dynamic sitemap: mounts routes
backend/src/index.ts - Dynamic sitemap → Commerce database: reads active catalog
- Shopper → Solar assistant: asks questions
- Express API → Solar assistant: mounts routes
backend/src/index.ts