Open nataliiazab opened 1 week ago
User Story: As a user, I want to view and search movies available in the app.
Implementation:
Database: Set up a movies table in PostgreSQL with columns like title, description, genre, and release_year.
Backend: Create an endpoint (/movies) to retrieve a list of movies and a search endpoint (/movies/search) to search by title or genre.
Frontend: Display the movie list and allow search functionality.
Testing: Write tests to verify data retrieval, search functionality, and error handling for failed searches.
Reference&API: https://www.themoviedb.org/movie
User Story: As a user, I want to view and search movies available in the app.
Implementation:
Database: Set up a movies table in PostgreSQL with columns like title, description, genre, and release_year.
Backend: Create an endpoint (/movies) to retrieve a list of movies and a search endpoint (/movies/search) to search by title or genre.
Frontend: Display the movie list and allow search functionality.
Testing: Write tests to verify data retrieval, search functionality, and error handling for failed searches.