Let's create a React App that uses the TMDB API to display movies or TV shows! The first step is to connect to the API. To do that we need to request and API token and test it before starting our project.
Request an API token
Here is the official guide on how to do that
Test the connection
You can use something like Postman or Insomnia[^1] to test your API token. To do that, make a request to the following endpoint using your API token and see if you get the details for the 1954 Godzilla movie 🦖.
https://api.themoviedb.org/3/movie/1678?api_key=<api_token>&language=en-US
[^1]: Personally I prefer Insomnia because it is lighter, quicker, open source and free (unless you want some advanced features)
Let's create a React App that uses the TMDB API to display movies or TV shows! The first step is to connect to the API. To do that we need to request and API token and test it before starting our project.
Request an API token Here is the official guide on how to do that
Test the connection You can use something like Postman or Insomnia[^1] to test your API token. To do that, make a request to the following endpoint using your API token and see if you get the details for the 1954 Godzilla movie 🦖.
https://api.themoviedb.org/3/movie/1678?api_key=<api_token>&language=en-US
[^1]: Personally I prefer Insomnia because it is lighter, quicker, open source and free (unless you want some advanced features)