🎥 Cinema 🎥

Application implementing the work of the site for the purchase of tickets to the cinema

Functionality:

  • User registration and authentication.
  • Possibility to be in the role of admin / user
  • Admin functions :
    • add new cinema halls
    • add new movies
    • create / change / delete / movie sessions
    • find users by-email
  • User functions:
    • see list of the cinema halls
    • see list of the movies
    • choose available movie sessions with date
    • bye tickets in the shopping cart
    • see list of the orders

List of Technologies:

Java11

Maven

Spring:

Spring MVC

Spring WEB

Spring Security

Hibernate

MySQL

Tomcat (9.0.50)

Structure:

This project has N-tier architecture. It consists of:_

Controller layer - accept http requests from client and sends responses.

Service layer - all business-logic is located here.

DAO layer - all interaction with DataBase is located here

How can I use it ?

  • Step 1 - Fork this repository
  • Step 2 - Open IntelliJ IDEA and write git clone <SSH link> in console
  • Step 3 - Configure resources of you DB --> "db.properties" file
db.driver=YOUR_DRIVER
db.url=YOUR_URL
db.user=YOUR_USERNAME
db.password=YOUR_PASSWORD

For example:

db.driver=com.mysql.cj.jdbc.Driver
db.url=jdbc:mysql://localhost:3306/cinema?serverTimeZone=UTC
db.user=root
db.password=1234
  • Step 4 - Install Tomcat. (you can install it here) .
  • Step 5 - Add Tomcat server in configurations
  • Final Step - Run project