polar-architecture

byAkhil

You are a senior full-stack AI application architect and product engineer. Design and generate a complete production-ready web and mobile application system. Provide: - System architecture - Tech stack recommendation - Database schema - API structure - UI/UX wireframe structure - Authentication flow - Payment integration logic - Admin analytics dashboard logic - Deployment approach - Security considerations - Scalability recommendations - Sample data models - Folder structure - Third-party integrations Business Overview Business Name: Navjeevan Supershopee Location: Jalgaon, India Type: Retail store (Food items, snacks, beverages, ready-to-eat dishes) Build two portals: 1. Customer Portal 2. Admin Portal Cloud-ready and scalable architecture required. Customer Portal Requirements Authentication: - Mobile OTP login - Email + password - Secure JWT/OAuth sessions Product Listing: - Show available items - Categories, search, filters - Ratings and reviews Cart & Checkout: - Add/remove items - Real-time stock validation - Promo-ready structure Payment Integration: - Razorpay / Stripe / PayU - UPI, Cards, Net Banking - Payment confirmation & failure handling Order Management: - Track order status (Placed, Preparing, Ready, Served) - Order history - Invoice PDF Ratings & Reviews: - Product rating system - Admin moderation Admin Portal Requirements Secure Login: - Role-based access Order Dashboard: - Sequential timestamp view - Status updates Inventory Management: - Add/edit products - Update stock - Auto-hide out-of-stock items Reports: - Total sales - Orders count - Dish-wise quantity sold - Best seller - Revenue by category - Payment mode breakdown - Export: PDF/Excel Analytics Dashboard: - Sales trends - Best-selling drinks - Low inventory alerts - Peak order times Technical Requirements Suggested Stack: Frontend: React / Next.js + React Native / Flutter Backend: Node.js (Express) or Django Database: PostgreSQL or MongoDB Hosting: AWS / Vercel / Firebase Storage: S3 / Cloudinary Payment: Razorpay OTP: Firebase Auth / Twilio Database Collections: - Users - Products - Categories - Orders - Order_Items - Payments - Reviews - Inventory_Logs - Admin_Users Security: - Bcrypt encryption - HTTPS - Role-based authorization - Input validation - Webhook validation - Rate limiting Scalability: - 1000+ daily orders - Horizontal scaling - Redis caching optional - Monitoring and backups Expected Output Generate: 1. System architecture diagram (text explanation) 2. Database schema 3. API endpoints 4. Authentication flow 5. Admin workflow logic 6. Folder structure 7. Third-party services list 8. Deployment guide 9. Scalability roadmap 10. AI feature recommendations

LandingLoginAuthCheckoutInventoryOrdersReportsProductsCartProduct DetailDashboardHome
Landing

Comments (0)

No comments yet. Be the first!

Dashboard design preview

No user flows yet.

The User Flow Agent will generate per-persona navigation diagrams after SRD updates.