- Java 11
- Spring Boot
- JDBC
- Maven
- Lambok
- JUnit
- PostgreSQL
The Filmorate application should become a platform for communication and interaction between users. Added the ability to make friends, leave reviews and recommend movies to each other. To help users navigate what is happening on the platform, we added an event feed. Plus, we added a search — by keyword from the title or description of the movie.
- Create a film
- Update a film
- Get a film by ID
- Like a film
- Unlike a film
- Get popular films
- Delete a film
- Add a user
- Update a user
- Get all users
- Get a user by ID
- Add a user as a friend
- Remove a user from friends
- Get user's friends
- Get common friends with a user
- Delete a user
- Get all genres
- Get a genre by ID
- Get an age rating by ID
- Get all age ratings
The functionality has been tested using JUnit 5 in the tests
package.
To use this API, follow these steps:
- Clone the repository:
git clone https://github.com/Buhanzaz/java-filmorate.git
- Navigate to the project directory:
cd java-filmorate
- Install any required dependencies:
npm install
- Getting a user with ID = 1:
SELECT*
FROM users
WHERE user_id = 1;
- Getting a film with ID = 10:
SELECT*
FROM films
WHERE film_id = 10.
Contributions to this project are welcome. To contribute, follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b my-branch
- Make your changes and commit them:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-branch
- Submit a pull request.