How veldor09/proyecto1 works
Project type and purpose
• This is a single‐page frontend application built with React, TypeScript, and Vite.
• It has no in‐house backend; it fetches and persists data via an external JSON‐bin service (see src/Hooks/useJsonBin.ts).
File structure
• Top‐level:
• index.html + public/ → static assets & HTML shell
• vite.config.ts → build & dev server config
• src/main.tsx → React entry point
• src/router.tsx → client‐side routing (React Router)
• src/Pages/… → page‐level containers
• src/Components/… → reusable UI components (tables, forms, layout, navbar)
• src/Hooks/… → custom hooks (data‐access, navigation)
• src/assets/… → images/static files
• Configuration files: ESLint, tsconfig, package.json
README for insights
• Standard React + TypeScript + Vite template with HMR, ESLint rules.
• No built‐in backend; instead uses JSON‐bin or similar service for CRUD operations.
Elements
• Clear labels for: Browser, Dev Server/CDN, React SPA sub‐layers, External API
• Browser → Dev Server (GET index.html)
• Browser ↔ React components (user events)
• Blue rectangles for client‐side modules (Pages, Components, Hooks)
• Green rectangle for infra (Vite server/CDN)