kelvinaapp/iykra_sentiment_backend — reverse-engineered prompt
Reverse engineered prompt
Build me a Python backend for a shoe brand sentiment analysis dashboard. I want a FastAPI app that connects to a PostgreSQL database and gives my frontend clean API endpoints for products, brand and product sentiment, campaigns or sales related data, and overall analytics. People using the dashboard should be able to list products, open a product detail view, check sentiment for a brand or a single product, compare brands, and see which products are trending. If the existing repo is already set up for social media sentiment, product review sentiment, and an AI chatbot route, please wire those up in a simple sensible way too.
Please make it feel production ready enough for local development, with clear request and response models, database backed data access, CORS enabled for a frontend, and working API docs at /docs and /redoc. Keep the code clean and easy to follow, and make sure it starts locally with uvicorn main:app --reload. If you need details, check the current FastAPI and Postgres docs online.
Want more depth? Deep Reverse