DEV Community

shinjith
shinjith

Posted on

2

Movie Loft - A Movie DB API Client

Hello DEVs,
Check out this react app I made as a begginer. To put it simply, this app is a client of TMDB's API.

It displays a list of Popular, Now playing, and Top Rated movies/tv_shows on the homepage, as well as a search bar.

App screenshot

It obviously has a search result page that displays the entire search result array from the API response.

And a separate page rendered for each movie/tv_show when the resulting card from the search result or homepage list is clicked.

Have a look on this live site: Movie Loft

If this project intrigues you, you can find the source code here: Github

If you're unfamiliar with APIs, here's how I set one up,

Setup API

  1. Sign up on TMDB website
  2. On mainpage, go to top right avatar icon>settings>API or follow this link
  3. Request for API_KEY
  4. Once you've obtained your key, assign it as the default Authorization header of axios requests,

    axios.defaults.headers.common["Authorization"] = 
        `Bearer ${<API_KEY>}`;
    

    (Axios is a Javascript library used to make HTTP requests)

  5. Now, follow the Developer docs to start making requests.

In addition, to save time on UI development, I've used Material UI.

Thank you for your time. Have a wonderful day <3

Dev Diairies image

User Feedback & The Pivot That Saved The Project

🔥 Check out Episode 3 of Dev Diairies, following a successful Hackathon project turned startup.

Watch full video 🎥

Top comments (0)

Tiger Data image

🐯 🚀 Timescale is now TigerData: Building the Modern PostgreSQL for the Analytical and Agentic Era

We’ve quietly evolved from a time-series database into the modern PostgreSQL for today’s and tomorrow’s computing, built for performance, scale, and the agentic future.

So we’re changing our name: from Timescale to TigerData. Not to change who we are, but to reflect who we’ve become. TigerData is bold, fast, and built to power the next era of software.

Read more

👋 Kindness is contagious

Explore this insightful piece, celebrated by the caring DEV Community. Programmers from all walks of life are invited to contribute and expand our shared wisdom.

A simple "thank you" can make someone’s day—leave your kudos in the comments below!

On DEV, spreading knowledge paves the way and fortifies our camaraderie. Found this helpful? A brief note of appreciation to the author truly matters.

Let’s Go!