How baby-frog/froggy-blog-web works
Project type and purpose
• This is a single‐page application (SPA) “Froggy Blog” front end, built in React + TypeScript + Vite.
• It provides readers with story browsing and commenting, and authenticated users/admins with content creation, profile editing, and dashboard analytics.
High‐level file‐structure analysis
• Top‐level config: .eslintrc, tsconfig, vite.config.ts, tailwind.config.cjs, vercel.json → build & deploy setup.
• public + index.html → static entry point.
• src/
• main.tsx + App.tsx → React root and router initialization.
• pages/ + layouts/ + components/ → presentation layer (page‐level vs reusable).
• apis/ → service layer encapsulating HTTP calls to backend REST endpoints (auth, admin, stories, comments, likes, etc).
• contexts/ + hooks/ → global state & custom hooks.
• constants/, types/, schemas/ → type definitions, validation rules, and endpoint URIs.
• utils/ → HTTP client wrapper, formatting, error handling.
• No backend code here – this client talks to external API(s).