How shr3e23/ai-solutions works
AI-Solutions is a public company website and a separate admin console backed by an Express/MongoDB API, with a Gemini-powered chatbot. The public workflow presents company and service information, lets visitors explore events and content, register, contact the company, or submit reviews; administrators authenticate and manage content and customer feedback. The graph preserves the major documented content areas and separates API routing, domain operations, and persistence. Several page and admin implementations were not sampled, so their internal calls are omitted; dashed links mark documented integrations whose frontend calls were not shown.
Main entry points: routes Content API routes · src/App.jsx Public app shell · AdminDashboard.jsx Admin dashboard · src/App.jsx Admin app shell
Components 22
Public website
- Public app shell
client/src/App.jsx - Company and services
client/src/pages - Events and gallery
client/src/pages - Case studies and articles
client/src/pages - Reviews and contact
client/src/pages - Chat widget
client/src/components/Chatbot.jsx
Admin console
- Admin app shell
admin/src/App.jsx - Admin login
admin/src/pages/AdminLogin.jsx - Admin dashboard
admin/src/pages/AdminDashboard.jsx - Content management
admin/src/components/admin - Inquiry management
admin/src/components/admin/AdminInquiries.jsx - Review management
admin/src/pages/AdminReviews.jsx
API and domain logic
- Admin authentication
server/controllers/adminController.js - Content API routes
server/routes - Content controllers
server/controllers
Persistence and uploads
- MongoDB
server/config/db.js - Content models
server/models - Image uploads
server/middleware/uploadMiddleware.js
AI integration
- Chat endpoint
server/routes/chatRoutes.js
Other components
- Website visitor
- Administrator
- Google Gemini
Connections 25
- Website visitor → Public app shell: visits
- Public app shell → Company and services: routes to
client/src/App.jsx - Public app shell → Events and gallery: routes to
client/src/App.jsx - Public app shell → Case studies and articles: routes to
client/src/App.jsx - Public app shell → Reviews and contact: routes to
client/src/App.jsx - Public app shell → Chat widget: renders
client/src/App.jsx - Public app shell → Content API routes: requests content
- Reviews and contact → Content API routes: fetches reviews
- Chat widget → Chat endpoint: sends messages
- Administrator → Admin app shell: opens console
- Admin app shell → Admin login: routes to
admin/src/App.jsx - Admin app shell → Admin dashboard: protects route
admin/src/App.jsx - Admin dashboard → Content management: renders managers
admin/src/pages/AdminDashboard.jsx - Admin dashboard → Inquiry management: renders manager
admin/src/pages/AdminDashboard.jsx - Admin dashboard → Review management: renders manager
admin/src/pages/AdminDashboard.jsx - Admin login → Admin authentication: authenticates
- Content management → Content API routes: manages content
- Inquiry management → Content API routes: tracks inquiries
- Review management → Content API routes: manages reviews
admin/src/pages/AdminReviews.jsx - Content API routes → Content controllers: dispatches requests
server/routes/reviewRoutes.js - Content API routes → Admin authentication: checks protected requests
server/routes/reviewRoutes.js - Content controllers → Content models: reads and writes
server/controllers/reviewController.js - Content models → MongoDB: persists records
- Content API routes → Image uploads: accepts image files
server/routes/galleryRoutes.js - Chat endpoint → Google Gemini: generates replies
server/routes/chatRoutes.js