How akashakula327/resolve-hub-fe works
Project type and purpose
• This is a Single‐Page Application (SPA) front-end for a complaints management tool (“Lovable” complaint portal).
• Built with React + TypeScript, bundled by Vite, styled with Tailwind CSS, and using the shadcn-ui component library.
• It runs entirely in the browser, fetching data and authentication from external APIs or services.
File structure
• Top-level:
• public/ – static assets (index.html, robots.txt)
• src/ – all application code
• src/main.tsx – React entry point
• src/App.tsx + App.css – root component & styles
• vite.config.ts, tsconfig*.json, tailwind.config.ts – build & compiler configs
• src/components/ – presentational and layout components, including DashboardLayout, ProtectedRoute, NavLink, StatusBadge
• src/components/ui/ – primitive UI building blocks (buttons, dialogs, tables, forms, etc.) provided by shadcn-ui + Tailwind
• src/contexts/ – global state providers (AuthContext, ComplaintContext)
• src/hooks/ – custom React hooks (useToast, useMobile)
• src/lib/ – utility functions (e.g. utils.ts)
• src/pages/ – route-based views (Login, Register, Dashboard, AdminComplaints, OfficerComplaints, ManageCitizens, ManageOfficers, SubmitComplaint, NotFound)
README for additional insights
• Confirms tech stack: Vite, React, TypeScript, shadcn-ui, Tailwind CSS
• Describes development flow (npm run dev) and deployment via the Lovable platform
• No backend code here – the SPA communicates with external APIs for data and auth