How aveekgg/govern-assess-hub works
Project type and purpose
• This is a full-stack, single-page survey application (“Lovable”) built with React+TypeScript and deployed via Vite.
• It uses Supabase as its back-end (PostgreSQL database, authentication, serverless functions) and integrates with external Google Sheets for data sync.
File structure
• Top-level assets and config:
• index.html, public/robots.txt (static hosting entry)
• bun.lockb, package.json, vite.config.ts, tsconfig*.json, tailwind.config.ts (build/system config)
• Source code (src/):
• main.tsx, App.tsx, index.css – application entry point and global styles
• components/ & components/ui/ – UI library built on shadcn-ui and Tailwind primitives
• pages/ – route components (Index, Admin, Results, NotFound)
• data/ – static survey schema (surveyData.json)
• hooks/ – custom React hooks (use-mobile, use-toast)
• integrations/supabase/ – Supabase client setup and types
• lib/ – shared utility functions
• Backend integration (supabase/):
• supabase/config.toml – project configuration
• migrations/ – SQL schema migrations for PostgreSQL
• functions/sync-to-google-sheets – Edge Function that pushes data to Google Sheets
README for additional insights
• Confirms tech stack: Vite, TypeScript, React, shadcn-ui, Tailwind CSS
• Clarifies development workflow (npm run dev) and deployment via Lovable’s platform
• Mentions no other microservices or external APIs beyond Google Sheets