I know it's a bit of an old thread. But it's been a while since I've posted, and just been lurking so I'm going to give a little back to the community for anyone looking for this in the future.
You need to have access to an
API or a Movie Database to be able to do this.
The easiest way I could think of would be using an API. Such as
OMDb -
http://www.omdbapi.com/
You could either do two things.
Option 1:
If you not really bothered about getting indexed from Google - for example your traffic is coming from Youtube.
You can make a landing with let's say a Search bar for them to search for the Movie or a set of 9 popular films.
Upon searching you would then call out the API from OMDb and build the pages. All using the web api.
If a user goes to a movie page for example:
yourmoviesite.com/movies/[SLUG]
You could then use the slug to fetch data from the API.
Advantages:
Easy to set up. Requires minimal effort.
Disadvantages: Since the pages are generated 'On Demand' there will be a delay. And there's not gonna be any indexing from Google since all the pages/paths are not static.
Option 2:
Scrape all the movies from the API and built it with the data.
Though for this I would use something like NextJS (SSR) just grab the paths and when you build it would build out all the pages for you so Google can index them. Remember to build the sitemaps too.
Then run a Cron job checking for new Movies.
Advantages:
Super fast loading speed.
Gets Indexed by Google.
Disadvantages:
Needs more work and you need to know what you're doing.
Build time could take a very long time unless you just don't scrape them all ofc.
This is just a brief explanation for the average Software dev or if you're going to hire someone to do it.
It isn't in depth, it's just a 5 minute explanation.
If you have questions let me know.
-DF