cak-upik/resthalf-backend — reverse-engineered prompt
Reverse engineered prompt
Build me a simple hotel booking backend in this existing NestJS TypeScript project.
I want an API that lets someone manage hotels and rooms, check whether rooms are available between a check in date and check out date, create a booking for a guest, view booking details, and cancel a booking. Keep it practical and easy to test, with clear validation so bad dates, missing guest info, double bookings, and unavailable rooms return helpful errors.
Please set up the needed modules, services, controllers, data models, and tests. If there’s already a database approach in the project, use it. If not, add a simple local setup that can run easily for development. Include basic seed data so I can try the API right away.
Update the README with how to install, run, test, and try the main endpoints. Look up current NestJS docs online if you need to.
Want more depth? Deep Reverse