Amit-Mahaseth/Cartivo-Ecommerce--Backend ? reverse-engineered prompt
Reverse engineered prompt
Build me the backend for a cart and marketplace app called Cartivo.
I want it set up as a set of services for sign up and login, products, cart, orders, and payments, with a clean API that a React frontend can use. It should let customers register, log in, save addresses, browse and search products, add items to cart, place orders, and pay with Razorpay. Sellers should be able to add, edit, and remove products, and see their own listings and sales info. Please also include basic admin and role checks, secure auth with access and refresh tokens, and make sure cart and order totals are always calculated on the server so they can’t be tampered with.
Use MongoDB for data, Redis for caching and rate limiting, and RabbitMQ for events like user created, product updated, and order placed. Add sensible validation, error handling, and logging so the services are easy to debug. If you need to look up current docs online, go ahead and do that.
Are you gonna build this?
make sure you review the code using coderabbit