The project contains a total of 7 files:
- An index.html for HTML content.
- Four JS files.
- This README file.
- A style.css file for styling.
The 7 files are pretty self-explanatory with comments added throughout. In case a user doesn’t understand, here are some basics:
- The constants.js file contains constants used throughout the js files. These include both variables and functions.
- The homescreen.js contains code to render the welcome screen and display the popular movies for that particular day.
- The titlesearch.js contains code to handle search submission for title searches. It then renders the most relevent search results and displays them as cards.
- The keywordsearch.js contains code to handle search submission for keyword searches. It does the same job as titlesearch.js but with keywords and displays them as cards.