Skip to content

hung7897/mvp-hotel-booking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages