Code Monkey home page Code Monkey logo

booking-hotel's Introduction

Hotel Booking

Booking

Test Project for FoxmindEd

REST application Hotel booking

Endpoints:

  1. View list of available rooms (room have a number, category, price, additional options like breakfast, cleaning with additional cost) for specified dates.
  2. View rooms filtered by category.
  3. Create user.
  4. User can book the room for specified days.
  5. User can view his booking.
  6. User can get the total price of the booking (room for dates period + cost of additional options).
  7. View all bookings for the hotel.

The application use next frameworks and technologies:

  • Spring Boot;
  • ORM - Spring data JPA, Hibernate;
  • DB - H2;
  • Testing - Junit, Mockito, Spring, H2;
  • Building - Apache Maven. Authentication and authorization are not included in the application.

DB is initialised with two ways: with data.sql file and with /com/bookinghotel/utils/FillingDB.java file (@PostConstruct): creates 5 UserAccounts, 6 Hotels, 18 Rooms, 10 Bookings

To run application, checkout it using the web URL https://github.com/MarynaKontar/booking-hotel.git, run it on http://localhost:8081/api and test with Postman (in src/main/resources there is booking-postman_collection.json that you can import to Postman)

UML diagram is in src/main/resources/uml.png

booking-hotel's People

Contributors

marynakontar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.