How ethics-for-youth/web-frontend works
Project type and purpose
• This is a single-page application (SPA) built with React and Vite.
• It’s purely a front-end client that fetches and updates data via RESTful APIs (see the src/services folder).
• It uses TypeScript, Tailwind CSS, and the shadcn-ui component library for a modular UI.
File structure
• Top-level config and build files: vite.config.ts, tsconfig.json, tailwind.config.ts, postcss.config.js.
• Public/static assets in public/ and index.html as the application shell.
• Source code under src/ subdivided into:
• components/ (shared UI bits and layout)
• pages/ (route targets)
• services/ (API clients)
• contexts/ (React context providers, e.g. Auth).
• hooks/ (custom hooks wrapping API calls and local state).
• lib/ (utility abstractions, e.g. apiClient.ts).
• config/ (endpoint configuration).
README for additional insights
• Confirms Vite dev server for development and static build for production.
• Mentions deployment to any static host (Vercel, Netlify, S3).
• No built-in backend—calls out to external REST endpoints.
Detail and essential elements
• Separation of front-end layers (Routing, UI, Data).
• How configuration, build, and deployment fit together.
• External API endpoint as its own service node to highlight the micro-API integrations.