How pmartingatica/fe-ns works
Project type and purpose
• This is a single-page application (SPA) built with React and Vite.
• Its focus is on a dashboard-style UI: charts, tables, organization chart, login screen, navigation, etc.
• It fetches data via custom hooks (e.g. useMQS, useYield) from one or more backend APIs.
File structure
• Top-level files & dirs:
• package.json / vite.config.js — build & dev configuration
• public/ — static assets (favicon, index.html template)
• src/ — source code
– componentes/ and components/ — reusable UI components
– hooks/ — data-fetching & state hooks (api abstraction)
– layouts/ — wrapper layouts (DashboardLayout)
– pages/ — route-level views (Inicio, Reportes, etc.)
– App.jsx & main.jsx — app root, router mounting
– index.html — entrypoint HTML
• Notice pattern:
• Presentation layer (components)
• Routing/views (pages)
• State & data layer (hooks/api)
• Build tool (Vite with HMR)
README
• Confirms minimal React + Vite template
• Mentions ESLint and plugin choices
• No backend code here—backend endpoints are external