How nornarath001-ui/fullstack works
This repository combines a public-facing content portal with a Laravel administration backend. Visitors enter the React home page, load categorized content, select a section and view its content; the admin side manages that content and related files, alongside documents and other portal features. The route table and sampled controllers show the admin dispatch and content persistence paths. The README is empty, and the frontend header-fetch implementation and API routes were not sampled, so their backend connection is not asserted.
Main entry points: web.php Web routes · HomePage.jsx Home page · BodyContentController.php Body content · ContentAttachmentController.php File attachments
Components 29
React experience
- Home page
frontend/src/pages/HomePage.jsx - App routes
frontend/src/App.jsx - Content state
frontend/src/context/ContentContext.jsx - Header API client
frontend/src/api/headers.js - Header
frontend/src/components/Header.jsx - Sidebar
frontend/src/components/Sidebar.jsx - Main content
frontend/src/components/MainContent.jsx - Right menu
frontend/src/components/RightMenu.jsx - Footer
frontend/src/components/Footer.jsx
Admin workflows
- Web routes
backend/routes/web.php - Dashboard
backend/app/Http/Controllers/DashboardController.php - Portal sections
backend/app/Http/Controllers/ConstituencyController.php - Documents
backend/app/Http/Controllers/DocumentController.php
Content management
- Body content
backend/app/Http/Controllers/BodyContentController.php - Content records
backend/app/Models/BodyContent.php - File attachments
backend/app/Http/Controllers/ContentAttachmentController.php - Attachment records
backend/app/Models/ContentAttachment.php - Banner forms
backend/app/Http/Controllers/BannerFormController.php - Banner records
backend/app/Models/BannerForm.php - Main headers
backend/app/Http/Controllers/MainHeaderController.php - Header records
backend/app/Models/MainHeader.php - Sidebar content
backend/app/Http/Controllers/SidebarContentController.php - Sidebar records
backend/app/Models/SidebarContent.php - Page headers
backend/app/Http/Controllers/PageHeaderController.php - Public file storage
Access and settings
- Authentication
backend/app/Http/Controllers/AuthController.php - User account
backend/app/Models/User.php - Locale switching
backend/app/Http/Middleware/SetLocale.php
Other components
- Visitor
Connections 33
- Visitor → App routes: opens
- App routes → Home page: routes to
frontend/src/App.jsx - Home page → Content state: uses state
frontend/src/pages/HomePage.jsx - Home page → Header: renders
frontend/src/pages/HomePage.jsx - Home page → Sidebar: renders
frontend/src/pages/HomePage.jsx - Home page → Main content: renders
frontend/src/pages/HomePage.jsx - Home page → Right menu: renders
frontend/src/pages/HomePage.jsx - Home page → Footer: renders
frontend/src/pages/HomePage.jsx - Content state → Header API client: fetches headers
frontend/src/context/ContentContext.jsx - Web routes → Authentication: dispatches auth
backend/routes/web.php - Authentication → User account: authenticates
backend/app/Http/Controllers/AuthController.php - Web routes → Dashboard: dispatches dashboard
backend/routes/web.php - Web routes → Portal sections: dispatches sections
backend/routes/web.php - Web routes → Documents: dispatches documents
backend/routes/web.php - Web routes → Body content: dispatches content
backend/routes/web.php - Web routes → File attachments: dispatches files
backend/routes/web.php - Web routes → Banner forms: dispatches banners
backend/routes/web.php - Web routes → Main headers: dispatches headers
backend/routes/web.php - Web routes → Sidebar content: dispatches sidebars
backend/routes/web.php - Web routes → Page headers: dispatches page headers
backend/routes/web.php - Web routes → Locale switching: appends middleware
- Body content → Content records: reads and writes
backend/app/Http/Controllers/BodyContentController.php - Body content → Header records: queries headers
backend/app/Http/Controllers/BodyContentController.php - Body content → Sidebar records: queries sidebars
backend/app/Http/Controllers/BodyContentController.php - Body content → Public file storage: stores uploads
backend/app/Http/Controllers/BodyContentController.php - File attachments → Content records: loads content
backend/app/Http/Controllers/ContentAttachmentController.php - File attachments → Attachment records: reads and writes
backend/app/Http/Controllers/ContentAttachmentController.php - File attachments → Public file storage: stores files
backend/app/Http/Controllers/ContentAttachmentController.php - Banner forms → Banner records: reads and writes
backend/app/Http/Controllers/BannerFormController.php - Banner forms → Public file storage: stores images
backend/app/Http/Controllers/BannerFormController.php - Main headers → Header records: manages headers
backend/app/Http/Controllers/MainHeaderController.php - Sidebar content → Header records: queries headers
backend/app/Http/Controllers/SidebarContentController.php - Sidebar content → Sidebar records: manages sidebars
backend/app/Http/Controllers/SidebarContentController.php