mahmoudsamy7729/fastapi-saas-starter — reverse-engineered prompt
Reverse engineered prompt
Build me a FastAPI backend starter for a SaaS product that I can plug into a future dashboard or mobile app. I need users to register, log in, verify their email, reset and change passwords, use one time email login codes, and sign in with Google or GitHub.
Add billing with Stripe so I can create plans, let users subscribe, upgrade, cancel at the end of the billing period, and see their payments. Handle Stripe webhooks for successful checkout, invoice payment, failed payment, and canceled subscriptions.
Use PostgreSQL for the database, Redis for background jobs and rate limiting, and Celery for sending emails and subscription reminders. Include email templates for verification, password reset, login codes, and billing notices. Please set up migrations, Docker Compose, environment variables, basic request logging, sensible rate limits, and tests for auth and billing. Keep the code clean and separated so it’s easy to customize later. Look up current docs online if you need to.
Want more depth? Deep Reverse