ContriHUB / MovieScreen

0 stars 13 forks source link

Fetch details about the movie using an API #3

Closed eleensmathew closed 1 week ago

eleensmathew commented 2 weeks ago

Current Behaviour

Right now, users have to manually enter the movie title, description, and movie image poster.

Expected Behaviour

Based on user input of the title, save the description and image from a free web API.

image It's very bad design I know

DeshDeepakKushwaha commented 2 weeks ago

can u assign this issue to me

eleensmathew commented 2 weeks ago

Assigned to divyashsingh101

divyanshsingh101 commented 1 week ago

do i have to make two form or if only title is entered i will fetch data from api else normal flow ?

eleensmathew commented 1 week ago

If you can implement an auto-complete on the title I will give you a lot of bonus points. Don't make two forms only if the correct title is entered and that title exists then populate those fields in db. You can modify the form so that the description and poster isn't asked in frontend.

divyanshsingh101 commented 1 week ago

i need to push the code by Tomorrow morning ?

divyanshsingh101 commented 1 week ago

i implemented if only title field is given then fetch data from api else take the user data and do i need to segregate the shows and movie ?

eleensmathew commented 1 week ago

Wdym by segregate?

divyanshsingh101 commented 1 week ago

like there are three sections show add and movie if it is a show then we need to put it in the shows section else movie?

divyanshsingh101 commented 1 week ago

Screenshot 2024-10-08 235815

eleensmathew commented 1 week ago

You Dont need need to bother about show logic. If a movie is added it must be listed in movie list also check if the same movie is repeating or not before saving the movie in the db.

divyanshsingh101 commented 1 week ago

Screenshot 2024-10-09 112818