How chey004/health-readmit-predictor works
Project type and purpose
• This is a single-page web application built with Vite, React, and TypeScript.
• It uses a component-driven UI library (shadcn-ui + Tailwind CSS) and integrates with Supabase for data storage/auth.
• The app focuses on patient risk visualization & simulation, exposing forms, charts, and calculators.
File structure
• Top level: config (tsconfig.*, vite.config.ts), package manifests, public assets.
• src/main.tsx → application entrypoint bootstraps React.
• src/pages → route components (Index, NotFound).
• src/components → UI building blocks and feature components (DataTable, RiskDisplay, etc.).
• src/components/ui → generic UI primitives (buttons, dialogs, forms).
• src/hooks → custom React hooks (e.g. use‐mobile).
• src/utils & src/lib → pure logic and helpers (e.g. riskCalculator, utils.ts).
• src/integrations/supabase → the Supabase client and type definitions.
• supabase/config.toml → Supabase project configuration.
README
• Lists core tech: Vite, React, TypeScript, shadcn-ui, Tailwind CSS.
• Deployment hints: static deploy (Netlify etc.).
• No custom backend code – uses Supabase as BaaS.