Seat reservation system for a multiplex.
- Installed Java and JDK
- Installed Maven
- Installed Git
- Installed and running Docker
sudo docker pull postgressudo docker run --name postgres -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgressudo docker exec -it postgres psql -U postgresCREATE DATABASE multiplex;
exitClone repository
git clone https://github.com/Babior/TicketBookingApp.gitOpen project folder
cd TicketBookingAppBuild and run application
sudo sh ./buildAndRun.shRun endpoints
sudo sh ./test.sh1. List available movies for the chosen date
The user selects the day and the time when he/she would like to see the movie.
The system lists movies available in the given time interval - title and screening
times.
curl -X GET localhost:8080/screenings/after/2022-05-09T15:49:01.5492. Show the information about the particular screening
The user chooses a particular screening.
The system gives information regarding screening room and available seats.
curl -X GET localhost:8080/screenings/3/seats3. Make a booking for chosen seats
The user chooses seats, and gives the name of the person doing the reservation
(name and surname).The system gives back the total amount to pay and reservation expiration time.
curl -X POST localhost:8080/screenings/3 -H 'Content-type:application/json' -d '
{
"firstName":"Lizaveta",
"lastName":"Babior",
"seats": {
"9":"ADULT",
"10":"CHILD"
}
}'To see all available endpoints go to the Postman Collection
https://www.postman.com/liza-babior/workspace/my-workspace/collection/20162247-ca99861c-1f61-47ee-9b47-3f6ad9fc6426?action=share&creator=20162247