How m3ayush/hostelinsight works
Project type and purpose
• This is a single-page front-end application (built with React, TypeScript, and Vite) that provides a student and admin dashboard for services such as room booking, leave applications, complaints, feedback, laundry requests, late entries, etc.
• It integrates with Firebase (presumably for authentication and data storage) and an external AI service (the Gemini API) to power AI Studio features.
File structure
• Top-level:
• App.tsx, index.tsx, index.html: React entry points
• vite.config.ts, tsconfig.json, package.json: build and configuration
• firebase.ts: Firebase SDK initialization
• constants.ts, types.ts, metadata.json: shared types and static data
• components/: feature-based React components
• components/admin/: admin-specific views
• No backend directory—this is purely front-end; backend functions are handled by Firebase and the external Gemini API.
README
• Confirms local setup steps (npm install, .env.local for GEMINI_API_KEY, npm run dev).
• Mentions AI Studio hosting but no internal server code—deployment likely serves static assets.
Key points to capture
• The SPA’s feature modules (e.g., BookingModal, AdminDashboard) live entirely in the browser.
• Firebase provides authentication and persistent storage—no custom servers.
• Gemini API is the only external third-party service for AI functionality.
• Vite dev server vs. static hosting in production—two different deployment contexts.