Skip to content

saikatXshrey/Movie-Watchlist-React

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Movie Watchlist React

This app helps you search any movie from the web any helps you keep track of your "Watchlist", "Watched".

You can remove any movie,move your movies from "Watched" to "Watchlist" and vice-versa and the total number of movie in list will be shown along with the movie cards.

It is very benefecial for movie addictive people who can't keep track of the movies they saw/willing to see.

Demo

Project Demo

movie.playlist.react.mp4

Screenshots

Screenshot (1019)

Screenshot (1020)

Screenshot (1021)

Screenshot (1022)

Screenshot (1023)

Screenshot (1024)

Screenshot (1025)

Screenshot (1027)

Screenshot (1028)

Screenshot (1029)

API Reference

Api used : The Movie DataBase

Get all movies

  GET /api/movies
  
  https://api.themoviedb.org/3/search/movie?api_key=${REACT_APP_TMDB_KEY}&language=en-US&page=1&include_adult=false&query=${e.target.value}
Parameter Type Description
api_key string Required. Your API key
movie name string Required. Name of movie to fetch

Run Locally

Clone the project

  git clone https://github.com/saikatXshrey/Movie-Watchlist-React.git

Go to the project directory

  cd my-project

Install dependencies

  npm install

Start the server

  npm run start

Deployment

To deploy this project run

  npm run deploy

Lessons Learned

This project heavily uses "React Routing" as we needed to route between "Watchlist","Watched" and "Add" page without any reload so routing plays an important role here.

And ofcourse we needed to maintain states thats why "useState" was used. Along with "useEffect" for causing side effect and "fetch api" for fetching the movie according to our search from the "TMDb Api".

There was a major problem about the movie switching control i.e when we would want to remove a movie/move a movie from Watchlist to watched/vice-versa then there was a rising problem about "prop-drilling" which was solved using "Context Api" for removing/switching a GLobalCOntext was maintained.

And another thing was to store the the movies which we saved for Watchlist/Watched even if we close the app and for that i took the help of "localstorage".

About

An awesome app to search any movie and maintain your watch, watched & playlist

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published