This is a demonstration purpose only app. This app consumes The Movie Database API
Please update your local pods by running
pod repo update followed by
pod install before opening the
Since it is not safe practice to check in API key into version control, I have utilized CloudKit to store the key and retrieve from it when first needed. This API key is then safely stored into Keychain and from that point on, used from Keychain as required.
If you are unable to fetch API Key from CloudKit, it could be because of my developer certificate not matching with what you have.
In that case to make it simpler to run the app, please add my (or your own) TMDB API key in
You will find proper instructions on how to do that in that file.
"Now Playing" movies list is stored in local CoreData DB once fetched. Since that list doesn't change very often, another API call won't be made unless data in CoreData is older than 24 hours. Please note, search results are not stored in local database otherwise it will explode at some point of using the app.
Possibilities to improve experience
- Show more data on details page.
- Some movie records also contain videos. If a movie has one, that can be shown instead of a backdrop image.