The MoviePlay API offers services for managing movies and users, allowing users to access detailed information, search, filter, rate, and mark movies as favorites. Deployed in the cloud with Swagger documentation, it ensures a smooth experience and scalability. Developed with Spring Boot, it offers flexibility and seamlessly integrates with the MoviePlay mobile application.
The MoviePlay API offers a comprehensive platform for managing movies and users, deployed in the cloud and designed to be flexible and easily integrated, serving as the foundation for the immersive and personalized experience in the MoviePlay mobile application.
Follow these steps to configure and run the project in a local environment:
git clone https://github.com/marcoserod/BE-G1-DAI-1C-TN-2024.git
cd BE-G1-DAI-1C-TN-2024
mvn clean install
mvn spring-boot:run
Before deploying new changes or updating the repository, ensure the Docker image is up-to-date running the following command:
mvn clean package
This section provides information on how to work with the configured PostgreSQL database on Render for our application.
Database connection settings are already configured in the application.properties file of the application. This file includes the necessary credentials and connection information required to connect to the PostgreSQL database hosted on Render when running application.
To manage the database schema or perform any database operations, you can connect to PostgreSQL database using any PostgreSQL client tool that you prefer, such as psql or a GUI-based tool like pgAdmin. You need to ensure PostgreSQL is installed on your machine. Here's how to proceed:
Link: https://www.postgresql.org/download/
Open the Command Prompt (CMD) and navigate to the location of the /bin folder (created during the server installation) using the following command.
cd C:\Program Files\PostgreSQL\16\bin
To simplify the usage of PostgreSQL commands from any Command Prompt window, you should add the PostgreSQL bin directory to your system's PATH environment variable.
Connect using the PostgreSQL client or with the following command on cmd.
psql -h <hostname> -U <username> -d <dbname>
You will see the following message
Enter password:
This will prompt you to enter the password for the PostgreSQL server. Enter it and press Enter.
Now you are ready to see the created tables and perform additional operations as needed
psql> \dt;
The Swagger documentation with the exposed API operations can be viewed at the following path: Swagger Link