How camizzz0/faq-help-center-insw-cms works
This repository is a help-center content platform with a CMS for managing categories, subcategories, topics, FAQs, guides, and tutorials, plus public content, search, and feedback APIs. The CMS route tree leads to management pages, which use a shared API client to reach Express routes and controllers; controllers persist content through PostgreSQL and use Supabase Storage for uploaded assets. The excerpts and source index establish only selected frontend-to-backend relationships, so unverified route/controller wiring is omitted rather than inferred.
Main entry points: App.jsx CMS routes · db.js PostgreSQL · faqRoutes.js Public route handlers · api.js HTTP API client
Components 26
CMS management
- CMS routes
client/src/App.jsx - Dashboard
client/src/pages/cms/DashboardPage.jsx - FAQ management
client/src/pages/cms/FaqListPage.jsx - Category and topic management
client/src/pages/cms - Guide management
client/src/pages/cms/GuideListPage.jsx - Tutorial management
client/src/pages/cms/TutorialListPage.jsx - HTTP API client
client/src/services/api.js
API and content
- Express API
server/src/index.js - CMS route handlers
server/src/routes/cmsFaqRoutes.js - Public route handlers
server/src/routes/faqRoutes.js - FAQ and feedback
server/src/controllers/cmsFaqController.js - Category management
server/src/controllers/cmsCategoryController.js - Subcategory management
server/src/controllers/cmsSubcategoryController.js - Topic management
server/src/controllers/cmsTopicController.js - Guide management
server/src/controllers/cmsGuideController.js - Tutorial management
server/src/controllers/cmsTutorialController.js - Content feedback
server/src/controllers/feedbackController.js
Persistence and files
- Content data model
server/src/models/schema.js - PostgreSQL
server/src/config/db.js - Icon file storage
server/src/services/iconStorageService.js - Guide PDF storage
server/src/services/guideStorageService.js - Supabase Storage
server/src/config/supabase.js
Public discovery
- Search
server/src/controllers/searchController.js - Public content delivery
server/src/controllers/faqController.js
Other components
- CMS operator
- Help-center visitor
Connections 30
- CMS operator → CMS routes: uses
client/src/App.jsx - CMS routes → Dashboard: routes to
client/src/App.jsx - CMS routes → FAQ management: routes to
client/src/App.jsx - CMS routes → Category and topic management: routes to
client/src/App.jsx - CMS routes → Guide management: routes to
client/src/App.jsx - CMS routes → Tutorial management: routes to
client/src/App.jsx - FAQ management → HTTP API client: calls
client/src/pages/cms/FaqListPage.jsx - Dashboard → HTTP API client: calls
client/src/pages/cms/DashboardPage.jsx - Category and topic management → HTTP API client: calls
client/src/pages/cms/TopicListPage.jsx - HTTP API client → Express API: sends HTTP
client/src/services/api.js - Express API → CMS route handlers: mounts
server/src/index.js - Express API → Public route handlers: mounts
server/src/index.js - CMS route handlers → FAQ and feedback: routes requests
- Public route handlers → Content feedback: routes feedback
server/src/routes/faqRoutes.js - FAQ and feedback → PostgreSQL: queries
server/src/controllers/cmsFaqController.js - FAQ and feedback → Content data model: uses tables
server/src/controllers/cmsFaqController.js - Category management → PostgreSQL: queries
server/src/controllers/cmsCategoryController.js - Category management → Icon file storage: uploads icons
server/src/controllers/cmsCategoryController.js - Subcategory management → PostgreSQL: queries
server/src/controllers/cmsSubcategoryController.js - Subcategory management → Icon file storage: uploads icons
server/src/controllers/cmsSubcategoryController.js - Topic management → PostgreSQL: queries
server/src/controllers/cmsTopicController.js - Topic management → Content data model: uses tables
server/src/controllers/cmsTopicController.js - Guide management → Guide PDF storage: manages PDFs
server/src/controllers/cmsGuideController.js - Icon file storage → Supabase Storage: stores files
server/src/services/iconStorageService.js - Guide PDF storage → Supabase Storage: stores files
server/src/services/guideStorageService.js - Help-center visitor → Public route handlers: requests content
- Public route handlers → Public content delivery: routes requests
server/src/routes/faqRoutes.js - Help-center visitor → Search: searches content
- Help-center visitor → Content feedback: submits feedback
- Content feedback → PostgreSQL: records feedback
server/src/controllers/feedbackController.js