Cinema-app - it is a java web application that uses Hibernate and Spring frameworks.
Application can create user with post request /register or login old user by /login request. We can create movies, cinema halls, tickets, movie sessions by user with admin role.
And create and fill shopping cart for current user.
Also, application can handle (complete) shopping cart orders, check available movies, cinema-halls, movie-sessions,
and after that shopping cart will be cleared.
also, we can find out order history.
For more details who can create and who can see go here -> link
- POST: /register - all - create new user
- GET: /cinema-halls - user/admin - for check available cinema-halls
- POST: /cinema-halls - admin - for create new cinema-hall
- GET: /movies - user/admin - for check available movies
- POST: /movies - admin - for create new movie
- GET: /movie-sessions/available - user/admin
- for check available sessions - POST: /movie-sessions - admin - for create new session
- PUT: /movie-sessions/{id} - admin - for update session by id
- DELETE: /movie-sessions/{id} - admin - for delete session by id
- GET: /orders - user
- for check orders history for current user that was logged - POST: /orders/complete - user - for complete order
- PUT: /shopping-carts/movie-sessions - user
- for add movie session to shopping cart - GET: /shopping-carts/by-user - user
- for check shopping cart for user - GET: /users/by-email - admin - for check available user by his email
| Technology | Version |
|---|---|
| JDK | 11 |
| Spring | 5.2.2 |
| Spring Security | 5.2.2 |
| Spring Web | 5.2.2 |
| TomCat | 9.0.69 |
| Hibernate | 5.4.27.Final |
| Maven | 3.8.6 |
| MySQL | 8.0.22 |
- Download TomCat with 9.0.69 (IMPORTANT)
- chose local server
- press fix and chose 'cinema-app:war'
- Change needed data into db.properties file
- (optionally) Change 32nd, 33rd lines (email and password value) in DataInitializer.java class, or you can change it in your database workspace
- open Postman on pc, and use it for some request types
