whiteboxhub/wbl-backend ? reverse-engineered prompt
Reverse engineered prompt
Build me a FastAPI backend for a web app that connects to a MySQL database and handles basic user login and protected routes. I want users to be able to register, get a token when they sign in, and use that token to access private endpoints like a recordings list. Please also include a simple API docs page, clean error handling, and a few working tests so I can trust the main flows.
There’s also a weekly marketing report feature I need. It should gather the last 7 days of interview counts and job clicks for active marketing candidates, generate an HTML report, and email it through SMTP. Make it possible to trigger it manually or through a cron style request, with a secret token for the scheduled run and an admin only run for manual use. Use environment variables for database, auth, and email settings, and make sure it works cleanly with a local dev setup. If you need current FastAPI or testing docs, look them up online.
Are you gonna build this?
make sure you review the code using arcumet