https://github.com/rolik-oleksandr/cinema-rest-api
Web API supports user authentication, authorization and CRUD operations, main stack: Spring MVC, Spring Security, Hibernate
https://github.com/rolik-oleksandr/cinema-rest-api
crud hibernate java-17 rest-api spring-mvc spring-security
Last synced: about 2 months ago
JSON representation
Web API supports user authentication, authorization and CRUD operations, main stack: Spring MVC, Spring Security, Hibernate
- Host: GitHub
- URL: https://github.com/rolik-oleksandr/cinema-rest-api
- Owner: Rolik-Oleksandr
- Created: 2023-06-30T11:05:44.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-10T13:20:27.000Z (almost 3 years ago)
- Last Synced: 2025-01-31T22:07:10.032Z (over 1 year ago)
- Topics: crud, hibernate, java-17, rest-api, spring-mvc, spring-security
- Language: Java
- Homepage:
- Size: 175 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐ฅCinema-REST-API
## ๐ Description:
Cinema REST-API Allow add movie session to cinema hall, and find available session. Supports user authentication,
authorization and CRUD operations.
Created using Spring & Hibernate.
## ๐ปMain technology stack:
- Java 17
- Spring Security
- Spring Web MVC
- Hibernate, MySQL 8.0
- Tomcat 9.0.75
- Maven

## ๐ Project structure:
- config -contains config classes required by Spring & Hibernate.
- controller -all http controllers.
- dao -classes responsible for crud operations with db.
- exception -custom exceptions.
- lib -custom validators for email, password and confirm password.
- model -model classes for entities shown in scheme above.
- service -classes that are responsible for business logic and connecting dao with controllers
- service/mapper -mappers that are used to parse dto to entity and entity to dto.
- util -util class containing date pattern
#### resources/
- db.properties -file containing database and Hibernate properties.
### ๐ How to use application
Requires Intellij and jdk 17 already installed
First you will need to pull this project from github. Here link to this project.
````
git@github.com:Rolik-Oleksandr/cinema-rest-api.git
````
1. Clone this repo to you IDE.
2. Create new run configuration tomcat_local
3. Replace username, password, driver and url in resources/db.properties with your own.

4. Run "mvn clean package" command in your terminal.
5. If everything okay - start Tomcat and try app.