Skip to content

Latest commit

 

History

History
56 lines (53 loc) · 1.88 KB

README.md

File metadata and controls

56 lines (53 loc) · 1.88 KB

MVP Hotel Booking System

The MVP Hotel Booking System is a simple web application built using Spring Boot, Java 11, and PostgreSQL. It allows guests to book hotel rooms and manage reservations.

Features

  • Guest registration and login
  • Room availability checking
  • Booking creation
  • Reservation details retrieval

Prerequisites

  • Java 11
  • PostgreSQL database (configured in application.properties)
  • Maven (for building and running the project)

Getting Started

Clone this repository:

API Endpoints

  • POST /api/register: Register a new guest. (TBU)
  • POST /api/login: Authenticate a guest. (TBU)
  • POST /api/hotel/bookings: Create a new reservation.
  • GET /api/hotel/bookings/guestId={guestId}&roomId={}: Retrieve reservation details.
  • GET /api/hotels/search-by-address: Get a list of available hotels.

Project Structure

mvp-hotel-booking/
├── src/
│   ├── main/
│   │   ├── java/
│   │   │   ├── com.mvphotelbooking/
│   │   │   │   ├── controller/
│   │   │   │   ├── entity/
│   │   │   │   ├── model/
│   │   │   │   ├── repository/
│   │   │   │   ├── service/
│   │   │   │   └── MvpHotelBookingApplication.java
│   │   │   └── resources/
│   │   │       ├── application.properties
│   │   │       └── static/
│   │   │       └── db.changelog/
│   │   │       └── templates/
│   │   └── ...
│   └── test/
│       └── ...
├── pom.xml
└── README.md

Contributors

Hung Nguyen

License

TBU