FE Code Challenge
FE Code Challenge
Problem statement
client wants to create a React app that search for movies bytitleand display alist of
A
results. The user should be able to enter a searchquery and see a list of movies that match
the query. Each movie result should display the title, year, and poster image.
he application should use the Open Movie Database (OMDb) API to fetch the movie data
T
(http://www.omdbapi.com/)
A
● search bar where the user can enter a search query
● A list of movie results that match the search query
● Each movie result should display the title, year, and poster image
Problem instructions
● Y
ou can prepare a base project that hasONLYthe dependenciesthat you need or
you can run this:npx create-react-app my-appto havethe initial environment.
● T
his is a live code interview, so the code with the implementation will be implemented
live during the interview.
● Y
ou can search online for some aspects of syntaxis and general questions, but not
for concrete answers to this challenge. This part of the interview will test your basic
knowledge of React.
MDb API:
O
Here is an example of how to call the API:
EQUEST:
R
https://www.omdbapi.com/?s=<MOVIE _TITLE>&apikey=<API_KEY>&page=<PAGE>
ttps://omdbapi.com/?s=Terminator&apikey=c9fe20e4
h
https://omdbapi.com/?s=Terminator&apikey=c9fe20e4&page=3
RESPONSE:
Success response:
Error Response: