Skip to content

sergoliarnik/popcorn_films

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Popcorn Films

Popcorn Films is a Java-based project that allows users to browse and manage a collection of movies. This README provides instructions on how to set up the project and get it running on your local environment.

Prerequisites

Before setting up the Popcorn Films Java project, you'll need the following software installed on your machine:

  • Java Development Kit (JDK) 17 or higher
  • PostgreSQL

Creating a Database

  1. Open pgAdmin 4 and press right mouse button on 'Databases'

img.png

  1. Write 'popcorn_films' and press 'Save'

img.png

Setup Instructions

Follow the steps below to set up the Popcorn Films Java project:

  1. Clone the project repository from GitHub to your local machine using the following command: git clone https://github.com/sergoliarnik/popcorn_films.git

  2. Open project in IntelliJ IDEA Ultimate Edition

  3. Set properties

    img.png

    img.png

    img.png

    Environment variables:

Name Value
DB_PASSWORD YOUR_PASSWORD
DB_URL jdbc:postgresql://localhost:5432/popcorn_films
DB_USERNAME postgres

img.png

  1. Database fillig

    img.png img.png img.png img.png

    Change this property on first run to create

    Don't forget to return update or all information will be cleared at the next run

  2. Press run

  3. The Popcorn Films application should now be running locally on your machine.

  4. You can access it's Swagger in your web browser at http://localhost:8080/swagger-ui/index.html#/.

  5. To make authorized request follow next steps

    img.png img.png

    Copy token img.png img.png

    Paste token

    img.png

    Make your request

  6. Be carefully some endpoints are allowed only for user with role ADMIN. You can set this role in the db.

img.png

  1. You can now use the Popcorn Films application to browse and manage movies by accessing the various endpoints provided by the application.

Project Structure

The Popcorn Films Java project follows the standard Maven project structure, with the following key directories:

  • src/main/java: Contains the Java source code of the project.
  • src/main/resources: Contains the configuration files, such as application.properties, for the project.
  • src/test/java: Contains the unit tests for the project.
  • target: Contains the compiled output and build artifacts generated by Maven.

Technologies Used

The Popcorn Films Java project uses the following technologies:

  • Spring Boot: A popular Java framework for building web applications.
  • Spring MVC: A part of the Spring framework that provides support for building web applications using the Model-View-Controller (MVC) pattern.
  • Spring Data JPA: A part of the Spring framework that provides support for working with databases using the Java Persistence API (JPA).
  • PostgreSQL: A popular relational database management system.

Conclusion

That's it! You've successfully set up the Popcorn Films Java project on your local machine. You can now start exploring and customizing the application to suit your needs. If you encounter any issues or have questions, please refer to the project's documentation or seek help from the project's contributors. Happy movie browsing with Popcorn Films!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages