Movie tickets online booking system
The task is:
Build a online booking system for cinema.
- 2 types of users: admin and regular users
- Admin can see all bookings and cancel them.
- Admin can creates the seats configuration in a seats.xml file.
- Users can select seat for booking.
- After selecting a seat, the user must confirm the booking within 5 minutes.
- After confirming the reservation, the user receives a booking code.
- Java 8
- Maven
- Servlet 4
- Jetty
- JDBC
- Liquibase
- DBs: H2
- log4j
- Ajax JSON
- XML DOM
- JUnit
git clone https://github.com/a11exe/cinema
mvn clean install jetty:run
DB connection
-
JDBC URL: jdbc:h2:file:~/cinema
-
User: sa, password: zD5z6Wx
-
Admin, pass: "admin" (set in properties) http://localhost:8080/admin
app.properties file
- reload.hall (true - clear database and reload seats from seats.xml, false - don't reload, save data in database)
- booking.timeout.seconds (timeout of booking until confirmation)
- admin.pass (password for admin panel)