How xerberuz/frontend_faworki works
Project type and purpose
• This is a React single‐page application (SPA) scaffolded with Vite.
• It implements a multi‐role portal (Administrator, Client, Worker) with authentication, role‐based routing, and i18n.
File structure
• Top‐level config: package.json, pnpm-lock.yaml, vite.config.js, eslint.config.js, vercel.json
• Entry points: index.html → src/main.jsx
• UI layers:
• src/router/AppRouter.jsx (React Router setup + ProtectedRoute)
• src/layouts/MainLayout.jsx (global structure)
• src/pages/** (per‐role and generic pages)
• src/components/** (shared widgets: sidebars, forms, language switcher)
• Cross‐cutting concerns:
• src/hooks/useAuth.js (auth state & role detection)
• src/services/api.js (HTTP wrapper to backend)
• src/translate/i18n.js + resource files (en, es)
README
• Confirms minimal Vite+React template with HMR and ESLint.
• No built-in backend; services/api.js expects an external REST API.