Skip to content

SeReNb26/cinema-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cinema-app

cinema


This project is an example of a simple web program for buying movie tickets. Built on a 3-tier architecture (Dao, Service, Controller)

The project supports the following functionality:

  • Registration and Login. Endpoints - ("/register", "/login"). For non-authorized users only
  • Show all cinema halls. Endpoint - (HttpMethod.GET, "/cinema-halls"). For user and admin roles
  • Add new cinema hall. Endpoint - (HttpMethod.POST, "/cinema-halls"). For admin role
  • Show all movies. Endpoint - (HttpMethod.GET, "/movies"). For user and admin roles
  • Show available movie sessions on a given day as parameter. Endpoint - (HttpMethod.GET, "/movie-sessions/available"). For user and admin roles
  • Add new movie session. Endpoint - (HttpMethod.POST, "/movie-sessions"). For admin role
  • Update movie session. Endpoint - (HttpMethod.PUT, "/movie-sessions/{id}"). For admin role
  • Delete movie session. Endpoint - (HttpMethod.DELETE, "/movie-sessions/{id}"). For admin role
  • Show all orders. Endpoint - (HttpMethod.GET, "/orders"). For user role
  • Complete order. Endpoint - (HttpMethod.POST, "/orders/complete"). For user role
  • Add movies session to shopping cart. Endpoint - (HttpMethod.POST, "/shopping-carts/movie-sessions"). For user role
  • Show all movies in shopping cart. Endpoint - (HttpMethod.GET, "/shopping-carts/by-user"). For user role
  • Get user by login (email). Endpoint - (HttpMethod.GET, "/users/by-email"). For admin role

  • Technologies


  • Spring(Core, MVC, Security)
  • Hibernate
  • Apache Tomcat
  • Apache Maven
  • Data Base: MySQL

  • Instructions for launching


    1. Copy the project into your IDE
    2. Add tomcat configuration
    3. Install MySQL & Workbench
    4. Create new schema with name "spring"
    5. Go to db.properties file and change login and password to your own
    6. Run the program
    7. Test all functionality in Postman or other webclient

    About

    No description, website, or topics provided.

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages