How lrodriguesg12/mi-pagina-web works
Project type and purpose
• This is a full-stack React application template built on Vite + React Router, offering server-side rendering (SSR), hot-module replacement (HMR), asset bundling, TypeScript, and TailwindCSS.
• It’s designed to run in development via npm run dev, build a static client/server bundle via npm run build, and deploy either in a Docker container or directly to Firebase Hosting via GitHub Actions.
File structure
Top-level artifacts:
• Dockerfile – containerizes the Node/Vite SSR server and client assets
• firebase.json / .firebaserc / .firebase/* – Firebase Hosting configuration and deployment cache
• .github/workflows/*.yml – CI pipelines to build and deploy to Firebase on PR/merge
• vite.config.ts, tsconfig.json – Vite and TypeScript compiler setups
• package.json / package-lock.json – dependencies & scripts
Source layout:
• app/ – React entry point (root.tsx), CSS, and route components under app/routes/* and app/welcome
• react-router.config.ts – explicit route definitions (alternatively could be file-based routing)
• public/ – static assets served as-is
Key patterns:
• SSR + hydration: root.tsx boots on server and client
• File-based routing under app/routes
• CI/CD → Docker build → Firebase deploy
README for additional insights
• Emphasizes SSR, HMR, asset optimization, data loading/mutations, TypeScript, TailwindCSS
• Outlines Docker deployment and “DIY” static‐server option
• Mentions generated build artifacts: build/client and build/server
Detail without overthinking
• Both SSR rendering and client hydration steps
• Call out configuration files (Dockerfile, firebase.json) as part of the deployment component
• Automated triggers (GitHub Actions) that tie source changes to production