docs: add CSA site frontend and backend documentation and architecture details

This commit is contained in:
vickytechkey 2026-10-03 16:36:28 +05:30
parent bfc6e14334
commit 0c4748208f
2 changed files with 21 additions and 0 deletions

View file

@ -6,7 +6,9 @@ You are **Anti-Gravity**, an autonomous AI development agent designed to execute
- **Agent Location**: `d:/Tradhox_workspace/Agents`
- **Supplier Central Frontend**: `d:/Tradhox_workspace/supplier_central_frontend` (React 19, TypeScript, Vite, TailwindCSS v4, Bulma CSS) -> AWS S3 / CloudFront
- **Customer Living Heritage Marketplace**: `d:/Tradhox_workspace/customerwebsite` (React 19, Vite, TailwindCSS v4) -> AWS S3 / CloudFront
- **CSA Site Frontend**: `d:/Tradhox_workspace/crmfrontend` (React 19, TypeScript, Vite) -> AWS S3 (`csawebsite` / `betacsa`) / CloudFront (`csa.tradhox.com` / `betacsa.tradhox.com`)
- **Backend Core**: `d:/Tradhox_workspace/seller_central_backend` (Python 3.14, Django 6.1, DRF, Gunicorn, PostgreSQL/SQLite) -> AWS EC2 (`seller-central-backend.service`)
- **CSA Backend Service**: `d:/Tradhox_workspace/crmbackend` (Python 3.14, Django 6.1 DRF) -> AWS EC2 (`apicsa.tradhox.com` / `betaapicsa.tradhox.com`)
- **Logistics & Shipping Service**: `d:/Tradhox_workspace/shippingservice` (Django microservice for EKart & SFX integrations, Webhooks, AWB Label rendering) -> Daemon (`shippingservice-beta.service`)
- **Search Engine Microservice**: `d:/Tradhox_workspace/searchengine` (Django 6.1, DRF, Typesense 27.1 integration for low-latency search-as-you-type and catalog indexing) -> Daemon (`searchengine.service`, Port 8087)
@ -42,11 +44,15 @@ You are **Anti-Gravity**, an autonomous AI development agent designed to execute
graph TD
SupplierUser([Supplier UI]) --> S3_Supplier[AWS S3 / CloudFront\nsupplier_central_frontend]
CustomerUser([Customer UI]) --> S3_Customer[AWS S3 / CloudFront\ncustomerwebsite]
CsaUser([CSA UI]) --> S3_CSA[AWS S3 / CloudFront\ncrmfrontend\ncsawebsite / betacsa]
S3_Supplier --> SupplierApp[React 19 + TS + Vite]
S3_Customer --> CustomerApp[React 19 + Vite]
S3_CSA --> CsaApp[React 19 + TS + Vite]
SupplierApp -- REST / JWT --> APIEndpoint[https://betapartner-api.tradhox.com/api\n(Beta & Local Testing)]
CustomerApp -- REST / State --> APIEndpoint
CsaApp -- REST / JWT --> CsaAPIEndpoint[https://betaapicsa.tradhox.com/api\ncrmbackend]
APIEndpoint --> Backend[seller_central_backend\nDjango 6.1 DRF]
CsaAPIEndpoint --> CsaBackend[crmbackend\nDjango 6.1 DRF]
Backend -- Logistics API --> ShippingService[shippingservice\nDjango + EKart + SFX Client]
Backend -- Search / Signal --> SearchService[searchengine\nDjango + Typesense Port 8087/8108]
CustomerApp -- Live Autocomplete --> SearchService

View file

@ -19,6 +19,9 @@ This document contains full technical specifications, data models, API endpoints
| Parameter | Configuration / Value | Scope / Usage |
| :--- | :--- | :--- |
| **API Base URL** | `https://betapartner-api.tradhox.com/api` | Primary DRF Backend API for Beta and Local testing |
| **CSA API Base URL** | `https://betaapicsa.tradhox.com/api` | CSA Backend API (`crmbackend`) for Beta & Local testing |
| **CSA Production Domain**| `https://csa.tradhox.com` | Customer Service & Support Portal (S3 Bucket: `csawebsite`) |
| **CSA Beta Domain** | `https://betacsa.tradhox.com` | Staging / Beta CSA Portal (S3 Bucket: `betacsa`) |
| **EC2 Server Host** | `16.113.57.127` | Main Application EC2 Instance (`ap-south-2`) |
| **SSH Key Path** | `~/.ssh/vignesh_tipro_apsouth2.pem` | SSH Private Key for Ubuntu user |
| **DB Host** | `16.113.106.152` | PostgreSQL cluster host (`cisystem`) |
@ -107,6 +110,18 @@ graph TD
---
## 4. 🎧 CSA Site Frontend & Backend: `crmfrontend` & `crmbackend`
- **Frontend Directory**: `d:/Tradhox_workspace/crmfrontend`
- **Tech Stack**: React 19, TypeScript, Vite, TailwindCSS v4.
- **Hosting**: AWS S3 Static Hosting (`csawebsite` for Prod, `betacsa` for Beta) / CloudFront CDN.
- **Public Domains**: `https://csa.tradhox.com` (Prod) & `https://betacsa.tradhox.com` (Beta).
- **Backend Directory**: `d:/Tradhox_workspace/crmbackend`
- **Tech Stack**: Python 3.14, Django 6.1, DRF, Gunicorn.
- **API Host Domains**: `https://apicsa.tradhox.com/api` (Prod) & `https://betaapicsa.tradhox.com/api` (Beta).
---
## 4. 🚚 Shipping & Logistics Microservice: `shippingservice`
- **Directory**: `d:/Tradhox_workspace/shippingservice`