Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.41 KB

README.md

File metadata and controls

53 lines (39 loc) · 1.41 KB

Codacy Badge

Cinema

Movie tickets online booking system

hall

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.

Used technologies

  • Java 8
  • Maven
  • Servlet 4
  • Jetty
  • JDBC
  • Liquibase
  • DBs: H2
  • log4j
  • Ajax JSON
  • XML DOM
  • JUnit

Install

git clone https://github.com/a11exe/cinema

Run

mvn clean install jetty:run

Credentials

DB connection

Properties

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)