Skip to content

About

Technologies: Java, Spring (Boot, Data JPA, Cloud: Gateway, Eureka Server/Client, LoadBalancer, OAuth2), PostgreSQL, Liquibase, MapStruct, Lombok, Keycloak, JUnit, Mockito, Docker, Swagger

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

FilmMaster 📽 🎬

Description

This application allows users to easily store and manage their movie collection. It provides functionality for adding, organizing, and retrieving movie information efficiently. Perfect for anyone looking to keep track of their favorite films in one convenient place.

Below is a demo version of the application. I would be thrilled if you could add your favorite movie! I'll definitely watch it on a free evening with some popcorn! 🍿

(The application is secured, so You cannot delete or edit movies)

http://srv29.mikr.us:20180/swagger-ui/index.html

How to Run the Application:

1. Running app by docker

Steps:

  • Clone the Repository: Clone this repository to your local machine using the following command in your terminal:

    HTTPS

    git clone https://github.com/Shair13/FilmMaster.git
    

    SSH

     git clone git@github.com:Shair13/FilmMaster.git
    
  • .env file: Before running docker-compose, ensure you set the database username and password in the .env file.

    DB_USERNAME=
    DB_PASSWORD=
    
  • Run the Application: in main package run command:

    docker compose up

2. Running app by CMD.

Steps:

  • Clone the Repository: Clone this repository to your local machine using the following command in your terminal:

    HTTPS

    git clone --recurse-submodules https://github.com/Shair13/FilmMaster.git
    

    SSH

     git clone --recurse-submodules git@github.com:Shair13/FilmMaster.git
    
  • Build the Application: Navigate to the main folder that contains all microservices and run:

    ./build_all.sh

Access the Application:

  • Once the application is running, you can access it through the endpoints specified in the documentation below:

    http://localhost:20180/swagger-ui/index.html
    

    You also have access to the EUREKA panel, where you can check all connected microservices:

    http://localhost:30180
    

IMPORTANT: The DELETE and UPDATE endpoints in the application are secured.

  • To access them, you need to log in with the credentials below:

    username: user
    password: password
    
  • You can also generate a TOKEN. Make a request to the following URL:

    http://srv29.mikr.us:40053/realms/Shair13/protocol/openid-connect/token
    

    with the provided data in body (x-www-from-urlencoded):

    * grant_type=password
    * client_id=movie-rest-api
    * client_secret=mPEQY5rJaAmylsSuU6btHeqv5xrAUp3P
    * username=user
    * password=password
    

    and you will receive a token for authorization.

Model Diagrams:

C4 diagrams

Contact

If you have any questions, feedback or issues, feel free to reach out to me:

About

Technologies: Java, Spring (Boot, Data JPA, Cloud: Gateway, Eureka Server/Client, LoadBalancer, OAuth2), PostgreSQL, Liquibase, MapStruct, Lombok, Keycloak, JUnit, Mockito, Docker, Swagger

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages