How cavargas10/frontend-cubeai works
Project type and purpose
• This is a single-page React application built with Vite. It serves as a client-side front end for user authentication, documentation browsing, dashboard management, and 3D generation-prediction workflows. It leverages Firebase for auth, Hygraph for content, and deploys statically (e.g., Vercel).
File structure
• Top-level config: .eslintrc.cjs, vite.config.js, tailwind.config.js, vercel.json → build, lint, styling, deployment.
• public/ → static assets like videos, robots.txt.
• src/ → all React source code:
• config/ → Firebase and Hygraph client setups
• layouts/ → Public vs. Dashboard vs. Docs reusable page wrappers
• features/
– auth/ → hooks, routes, pages for login, register, password flows
– dashboard/ → dashboard UI components and layout
– documentacion/ → content viewer and sidebar
– prediction/ → input components, result components, shared viewers, context, hooks, and API service
• components/ → UI primitives and modal dialogs
• lib/hygraph/ → GraphQL queries to fetch CMS content
• pages/, App.jsx, main.jsx → entry points and routing
README
• Minimal React + Vite template with HMR support and ESLint rules. No backend code—this confirms a static front end that integrates external services.
Detail
• How PredictionContext wraps input and result.
• Build/deploy pipeline: Vite → static bundle → Vercel → CDN → Browser.