designkarle/irctc-backend ? reverse-engineered prompt
Reverse engineered prompt
Build me a full IRCTC style train booking backend with a simple frontend too, using a microservices setup.
I want users to be able to sign up, log in, verify with OTP email, use Google login, search trains and stations, check seat availability, book tickets, make payments, and get notifications by email. The app should have an API gateway as the main entry point, with JWT auth, rate limiting, and basic resilience so one service failing does not break everything.
Use separate services for users, search, booking, payment, inventory, admin, and notifications. Booking should handle seat locking so two people cannot grab the same seat at once. Use PostgreSQL for the main services, Redis for sessions, OTP, and seat locks, Kafka for async events, and Elasticsearch for search. Please also set up Docker Compose so I can start the whole stack locally, and include a clean React frontend that talks to the gateway. If you need current docs for any library, look them up online first.