How rohitg00/createmvp works
Project type and purpose
• This is a full‑stack AI‑powered prototype generator (CreateMVP).
• Frontend: Single‑page React/TypeScript application with Tailwind CSS and Shadcn UI for rendering a variety of pages (Chat, file viewer, rules, MCP server docs, etc.).
• Backend: Express.js in TypeScript exposes REST endpoints for plan generation, subscription management, file upload, AI orchestration, and CRUD on API keys and chat history.
• Database: PostgreSQL managed via Drizzle ORM.
• External services: Multiple AI providers (OpenAI, Anthropic, Google, etc.) plus optional Supabase alternative for database.
File structure
• Top‑level “client” directory holds all frontend code:
• public for static assets and HTML shell (index.html)
• src for React pages, UI components, hooks, data, lib (context, query client), and routing under pages.
• Top‑level “server” directory holds backend code:
• index.ts boots the Express server, loads middleware/creditCheck.ts, mounts routes.ts
• routes/ subdivides endpoint handlers: generate-plan.ts, subscription.ts, etc.
• lib/api.ts wraps AI provider calls, storage.ts manages file uploads/PDF parsing.
• Configuration files: .env.example, drizzle.config.ts, vite.config.ts, tailwind.config.ts, tsconfig.json.
• Build tools: Vite for frontend dev/server, npm scripts to run, build, and push DB schema.
README for insights
• Sections confirm tech stack, deployment steps, DB schema (api_keys, chat_messages), and MCP/Windsurf contributions guidelines.
• Multi‑model AI integration, PDF upload extraction, and API key management are key features.