Spaces:
Running
Running
-
1.52 kB
initial commit
-
208 Bytes
Perfect ✅ Here’s the final English Master Prompt with mandatory Admin Manual Approval for Company/Restaurant accounts included: ⸻ 🧠 MASTER IMPLEMENTATION PROMPT (English, with Admin Approval) Generate a complete full-stack project (Django + Flutter) with NFC, subscriptions, coupons, CRM, and enterprise-grade security. The solution must include all source code, documentation, and deployment setup. ⸻ 🎯 Project Goal Build an ecosystem with: 1. Backend: Django + DRF, JWT + MFA, role-based access, NFC card handling, subscriptions, payments, coupons, orders, notifications. 2. Frontend/App: Flutter (Web, Android, iOS, Windows, macOS), responsive 3D UI, animations, organization & restaurant profiles, billing, NFC scanning. 3. NFC Bridge Service: Python background service to read cards, hash UID, send securely to backend. 4. CRM/Admin Panel: Manage users, subscriptions, organizations, restaurants, NFC cards, coupons, reports. 5. Deployment: Docker + CI/CD + Monitoring. ⸻ 🔐 Security • JWT (access/refresh) with rotation. • MFA support. • RBAC with per-organization roles. • Encrypted sensitive fields. • Audit logging. • Static analysis (ruff, mypy, bandit, safety). • Automated backups. ⸻ 🗃️ Data Models (Highlights) • User + Profile + Link quotas. • Organization: (company/restaurant) with: • business_license_file (required upload). • employees_count (must be declared). • Admin Manual Approval required before activation. • OrgMembership with roles (employee, supervisor, admin, cook, accountant, delivery, etc.). • RestaurantProfile: menus, sections, items. • NFC: cards, assignments, reader devices, scan events. • Billing: plans, subscriptions, coupons, invoices. • Orders: card orders, shipments. • Notifications: in-app + email/SMS. ⸻ 🧩 REST APIs • Auth: register, login, MFA verify. • Profile: update, links (quota). • Organizations: CRUD with business license upload, employees count, approval workflow. • Restaurants: menus. • NFC: assign cards, scan, resolve profile. • Billing: plans, subscribe, coupons, payments. • CRM/Admin: approve/reject organizations, manage everything. ⸻ 📱 Flutter App • Auth (register/login). • Profile & links. • Company/Restaurant signup flow with license upload + employees count. • Pending state until Admin approval. • Subscriptions, payments, coupons. • Responsive 3D UI with Rive animations. • Multi-platform (Web, Mobile, Desktop). ⸻ 🔌 NFC Bridge • Read card UID. • SHA-256 + SALT hash. • Send with HMAC signature. • Run as systemd/Windows service. ⸻ 💳 Payments • Subscription plans. • Auto-renewal. • Coupons. • Webhooks from Stripe/Paymob/MyFatoorah. ⸻ 🖥️ CRM/Admin • Admin dashboard (Django Admin or Flutter web). • View pending Companies/Restaurants. • Approve/reject based on uploaded license. • Manage subscriptions, coupons, reports, NFC scans. ⸻ 🧪 Tests • Pytest (85%+ coverage). • Flutter integration + golden tests. • CI/CD pipeline. ⸻ ✅ Acceptance Criteria 1. Organization (Company/Restaurant) must upload a valid Business License and declare employees count. 2. Organization remains in Pending status until Admin approves it. 3. Once approved, members can join and roles are enforced. 4. All APIs documented with Swagger. 5. Flutter app responsive on all devices. 6. NFC scanning works with backend. 7. All tests pass. ⸻ 👉 Do you want me to now convert this into a ready-to-run scaffold (Django + Flutter project structure with placeholder code) so you can start coding immediately? - Initial Deployment
-
41.3 kB
Perfect ✅ Here’s the final English Master Prompt with mandatory Admin Manual Approval for Company/Restaurant accounts included: ⸻ 🧠 MASTER IMPLEMENTATION PROMPT (English, with Admin Approval) Generate a complete full-stack project (Django + Flutter) with NFC, subscriptions, coupons, CRM, and enterprise-grade security. The solution must include all source code, documentation, and deployment setup. ⸻ 🎯 Project Goal Build an ecosystem with: 1. Backend: Django + DRF, JWT + MFA, role-based access, NFC card handling, subscriptions, payments, coupons, orders, notifications. 2. Frontend/App: Flutter (Web, Android, iOS, Windows, macOS), responsive 3D UI, animations, organization & restaurant profiles, billing, NFC scanning. 3. NFC Bridge Service: Python background service to read cards, hash UID, send securely to backend. 4. CRM/Admin Panel: Manage users, subscriptions, organizations, restaurants, NFC cards, coupons, reports. 5. Deployment: Docker + CI/CD + Monitoring. ⸻ 🔐 Security • JWT (access/refresh) with rotation. • MFA support. • RBAC with per-organization roles. • Encrypted sensitive fields. • Audit logging. • Static analysis (ruff, mypy, bandit, safety). • Automated backups. ⸻ 🗃️ Data Models (Highlights) • User + Profile + Link quotas. • Organization: (company/restaurant) with: • business_license_file (required upload). • employees_count (must be declared). • Admin Manual Approval required before activation. • OrgMembership with roles (employee, supervisor, admin, cook, accountant, delivery, etc.). • RestaurantProfile: menus, sections, items. • NFC: cards, assignments, reader devices, scan events. • Billing: plans, subscriptions, coupons, invoices. • Orders: card orders, shipments. • Notifications: in-app + email/SMS. ⸻ 🧩 REST APIs • Auth: register, login, MFA verify. • Profile: update, links (quota). • Organizations: CRUD with business license upload, employees count, approval workflow. • Restaurants: menus. • NFC: assign cards, scan, resolve profile. • Billing: plans, subscribe, coupons, payments. • CRM/Admin: approve/reject organizations, manage everything. ⸻ 📱 Flutter App • Auth (register/login). • Profile & links. • Company/Restaurant signup flow with license upload + employees count. • Pending state until Admin approval. • Subscriptions, payments, coupons. • Responsive 3D UI with Rive animations. • Multi-platform (Web, Mobile, Desktop). ⸻ 🔌 NFC Bridge • Read card UID. • SHA-256 + SALT hash. • Send with HMAC signature. • Run as systemd/Windows service. ⸻ 💳 Payments • Subscription plans. • Auto-renewal. • Coupons. • Webhooks from Stripe/Paymob/MyFatoorah. ⸻ 🖥️ CRM/Admin • Admin dashboard (Django Admin or Flutter web). • View pending Companies/Restaurants. • Approve/reject based on uploaded license. • Manage subscriptions, coupons, reports, NFC scans. ⸻ 🧪 Tests • Pytest (85%+ coverage). • Flutter integration + golden tests. • CI/CD pipeline. ⸻ ✅ Acceptance Criteria 1. Organization (Company/Restaurant) must upload a valid Business License and declare employees count. 2. Organization remains in Pending status until Admin approves it. 3. Once approved, members can join and roles are enforced. 4. All APIs documented with Swagger. 5. Flutter app responsive on all devices. 6. NFC scanning works with backend. 7. All tests pass. ⸻ 👉 Do you want me to now convert this into a ready-to-run scaffold (Django + Flutter project structure with placeholder code) so you can start coding immediately? - Initial Deployment
-
388 Bytes
initial commit