ccerks/nexcore-saas-api — reverse-engineered prompt
Reverse engineered prompt
Build me a production ready SaaS backend API for businesses that need separate workspaces for each customer. I want each tenant’s data physically separated in PostgreSQL using its own schema, with safe login using JWT, user roles, and a super admin who can securely switch into a tenant when needed.
The core app should let tenants manage a product catalog with SKUs, variations, prices, promo prices, stock, reserved stock, images, soft delete and restore, and audit history of important changes. Add bulk product import that rolls back if there are conflicts. Include Stripe billing setup with customer and subscription handling plus webhooks.
Please include Redis rate limiting, RabbitMQ background jobs, S3 style image storage, Discord alerts for critical errors or business events, dashboard summary metrics, Docker setup, migrations, and tests. Keep the code clean and organized so it’s easy to extend later. Use FastAPI and current best practices, and look up current docs online if you need to.
Want more depth? Deep Reverse