How gorgasal22-lgtm/kginfluencex works
KGinfluenceX is primarily a React SPA for connecting Georgian brands and influencers. Users enter through login, then navigate to dashboard, influencer, campaign, analytics, brand, content, settings, academy, and AI-studio areas. The SPA uses Supabase for authentication and data access; a separate Express service currently exposes an API router with a health route. The excerpts establish routing and login authentication, but do not show the implementation details of most feature pages or a connection between the SPA and the Express service.
Main entry points: App.tsx App routes · LoginPage.tsx Login and signup · app.ts Express app · index.ts API router
Components 18
SPA shell
- React entry
artifacts/kginfluencex/src/main.tsx - App routes
artifacts/kginfluencex/src/App.tsx
Account access
- Login and signup
artifacts/kginfluencex/src/pages/LoginPage.tsx - Supabase auth and data
artifacts/kginfluencex/src/lib/supabase.ts
Marketplace workflows
- Dashboard
artifacts/kginfluencex/src/pages/DashboardPage.tsx - Influencers
artifacts/kginfluencex/src/pages/InfluencersPage.tsx - Campaigns
artifacts/kginfluencex/src/pages/CampaignsPage.tsx - Brands
artifacts/kginfluencex/src/pages/BrandsPage.tsx - Content
artifacts/kginfluencex/src/pages/ContentPage.tsx
Insights and tools
API service
- Express app
artifacts/api-server/src/app.ts - HTTP logger
artifacts/api-server/src/lib/logger.ts - API router
artifacts/api-server/src/routes/index.ts - Health route
artifacts/api-server/src/routes/health.ts
Other components
- Platform user
Connections 16
- React entry → App routes: renders
artifacts/kginfluencex/src/main.tsx - Platform user → Login and signup: authenticates
artifacts/kginfluencex/src/pages/LoginPage.tsx - App routes → Login and signup: routes to
artifacts/kginfluencex/src/App.tsx - App routes → Dashboard: routes to
artifacts/kginfluencex/src/App.tsx - App routes → Influencers: routes to
artifacts/kginfluencex/src/App.tsx - App routes → Campaigns: routes to
artifacts/kginfluencex/src/App.tsx - App routes → Analytics: routes to
artifacts/kginfluencex/src/App.tsx - App routes → Brands: routes to
artifacts/kginfluencex/src/App.tsx - App routes → Content: routes to
artifacts/kginfluencex/src/App.tsx - App routes → Settings: routes to
artifacts/kginfluencex/src/App.tsx - App routes → Academy: routes to
artifacts/kginfluencex/src/App.tsx - App routes → AI studio: routes to
artifacts/kginfluencex/src/App.tsx - Login and signup → Supabase auth and data: authenticates with
artifacts/kginfluencex/src/pages/LoginPage.tsx - Express app → HTTP logger: configures
artifacts/api-server/src/app.ts - Express app → API router: mounts
artifacts/api-server/src/app.ts - API router → Health route: registers
artifacts/api-server/src/routes/index.ts