Sadaf-A / ExpressBook

ExpressBook API, built on Node.js, Express.js, and MongoDB, simplifies hotel room booking. It offers real-time room availability checks and accommodates simultaneous bookings. Users can effortlessly discover and reserve rooms, ensuring a smooth hotel experience.
https://expressbook.onrender.com
2 stars 0 forks source link
api expressjs hotel-booking javascript mongodb nodejs

Hotel Room Booking API - ExpressBook

A Node.js, Express.js, and MongoDB-based API for booking hotel rooms.

Features

Application Workflow

Step Description Screenshot
1. Run addData.js to populate the database with 500 vacant rooms. Step 1 Screenshot
500 room documents have been added to the database. Step 1 Result
2. Start the application by running app.js and make a GET request to view available rooms. Step 2 Screenshot
3. To book a room, make a POST request and specify the desired room number. Step 3 Screenshot
The room status changes to "booked." Step 3 Result
4. When making another GET request, the booked room (e.g., Room 500) will not appear in the available list. Step 4 Screenshot
Room No. 500 has been successfully booked.