https://github.com/christian-draeger/hotel-booking-example
https://github.com/christian-draeger/hotel-booking-example
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/christian-draeger/hotel-booking-example
- Owner: christian-draeger
- Created: 2022-03-17T12:52:52.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-31T07:32:42.000Z (over 3 years ago)
- Last Synced: 2024-05-02T01:51:43.791Z (over 1 year ago)
- Language: Kotlin
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 8
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hotel Booking
> Prerequisite: docker installation on your machine to be able to run application and tests! (please see https://docs.docker.com/get-docker/)
We already have a repository of hotels to store hotels to a Postgres Database.
To make our application usable to others we have implemented a REST API that provides several endpoints.
To see all our available Endpoints and to be able to call them in a convenient way we also added Swagger.
This allows us to open [http://localhost:8080/swagger-ui/index.html](http://localhost:8080/swagger-ui/index.html) and see the SwaggerUI with always up-to-date documentation of our endpoints as well as the ability to execute http requests from the UI against them.
### How to Start application
```shell
docker compose up
./gradlew bootRun
```
### How to execute all tests
```shell
./gradlew build
```
### Look into Database
Since PgAdmin will be started as part of the docker compose setup you should be able to open PgAdmin here http://localhost:5050/ .
## Exercise:
Store Rooms into database. A Room should be connected to certain hotel. A Hotel can have multiple Rooms.
Also implement `RoomController`.