How alvarorojas1101/invitacion-boda works
Project type and purpose
• This is a JAMstack “static” website built with Astro.
• It delivers mostly pre‑rendered pages (e.g., index.astro, various section .astro components) and offers interactive features (attendance registration, music controls, modals) via Firebase.
File structure
• Top‑level artifacts:
• astro.config.mjs, tailwind.config.mjs, tsconfig.json → build/pipeline/config
• public/ → static assets (MP3, photos, favicon)
• src/ → application code
· components/ → UI widgets (modals, cards, music controls)
· layouts/ → page layout wrappers
· pages/ → route endpoints (Astro routes)
· sections/ → larger page segments
· firebase.js & src/env.d.ts → client‑side Firebase SDK initialization and type definitions
• No separate “backend” folder: dynamic interactions handled in the client via Firebase.
Extract additional insights from the README
• This uses Astro’s “basics” template.
• There is no built‑in server or custom API—everything beyond static content uses client calls to Firebase.
a. Build & Deployment Pipeline
• Astro CLI + Tailwind → builds static HTML/CSS/JS → deploy to static host or CDN
b. Static Hosting / CDN
• Serves pre‑rendered HTML, CSS, JS, public assets
c. Client Browser (User)
• Fetches pages; loads Astro Islands (JS for interactive widgets)
• Executes components: AsistenciaModal, Music Controls, etc.
d. Firebase (BaaS)
• Auth (if used)
• Firestore or Realtime Database for attendance, messages
• Storage (optional) if uploading assets
e. External Services
• Instagram embed (via section/Instagram.astro)
• Potential analytics or other 3rd‑party widgets
Architectural patterns & technologies
• JAMstack / static site generation + client‑side hydration (“Astro Island” pattern)
• Component‑based UI (Astro, JSX)
• Tailwind CSS for styling
• Firebase as a serverless backend
• Sectioned page layout: modular “sections” and “components”
Final checklist
– Build pipeline
– Static host / CDN
– Client browser with Astro Islands & component folders
– Firebase services (Auth/DB/Storage)
– External APIs (Instagram embed)