At a high level, how does your system work?
My system creates a Singelton Inn instance and tracks rooms that are available to book. Originally my idea had been to introduce a Booking Model that you could attach to a room which could describe the booking information, but for the sake of time I attached a property to the Room. To summarize, my api manages room availability, based on if anyone has checked into the room.
How would we extend your system if we had to add more rooms, more business logic constraints, more gnomes?
You could build endpoints out to add either rooms, or gnomes, to the Inn object which tracks a high-level inventory of the resources at the Inn. To address more business logic constraints, you would carefully extend the capabilities of each model to handle the business logic, and add middleware as needed.
What documentation, websites, papers, etc. did you consult for this assignment?
- schema.org
- stackOverflow
- Express Router Docs
- Design Patterns for Dummies (ISBN 9780470046968)