How amrualyan/inventory-system works
Project type and purpose
• This is a single-page administrative dashboard built with React and Vite.
• Its purpose is to let Admins and Managers manage products, categories, budgets, reports, and user profiles.
• It relies entirely on Firebase (Authentication, Firestore or Realtime Database, possibly Storage) as its backend.
File structure
• Top-level:
• package.json, vite.config.js, index.html – define the build setup with Vite and React.
• src/main.jsx – application entry point.
• src/components – reusable UI widgets (Header, Sidebar, ContentArea, ProtectedRoute, etc.).
• src/pages – route components organized by role (Admin, Manager) and public pages (Login, Signup, Root).
• src/layouts – layout wrappers for AdminLayout and ManagerLayout.
• src/context – global state via AuthContext for user & authentication data.
• src/firebase & src/firebase.js – Firebase initialization and exports of auth, database, etc.
• src/hooks – custom hooks (useAuth to access context, useIsMobile for responsive behavior).
• src/styles & src/assets – CSS files and images used by components.
README for additional insights
• Confirms minimal React + Vite setup with ESLint and Fast Refresh plugins.
• No custom backend—Firebase is the de facto serverless layer.