How ashish1896/demo works
Project type and purpose
• From the file tree and README, this is a single-page web application (SPA) built with Vite, React, TypeScript, Tailwind CSS, and the shadcn-ui component library.
• The components (ChatBot, Dashboard, PeerForum, ResourceHub) suggest a learning/collaboration platform that lives entirely in the browser and communicates with external services (e.g., a chat or data API).
File structure
• Top-level configuration:
• vite.config.ts, tsconfig*.json, tailwind.config.ts, postcss.config.js → build & toolchain setup
• package.json / lockfiles → dependencies
• public/ → static assets served as-is (robots.txt, index.html shell)
• src/ → application code:
• main.tsx & index.html → SPA entry point and HTML template
• assets/ → images, fonts, other static resources
• lib/ → utility modules and API-wrappers (gemini.ts likely handles external chat API calls)
• hooks/ → custom React hooks for shared state/behavior
• components/ → UI layer, sub-divided into feature components (ChatBot, Dashboard, PeerForum, ResourceHub, Navigation) and ui/ (shadcn-ui based primitives)
• pages/ → top-level routable views (Index, SignIn/Up/Out, NotFound)
• No server directory implies this is purely front-end; any “backend” is an external API or the Lovable platform itself.
README for additional insights
• Confirms tech stack (Vite, React, TS, shadcn-ui, Tailwind)
• Mentions deployment via “Lovable” (likely a static-hosting CDN + serverless functions)
• No internal backend or database described—so data & authentication are handled by third-party services or Lovable’s infrastructure.