Coder Social home page Coder Social logo

movie-watchlist-app's Introduction

Movie Watchlist App

This application allow user to search movie by title, displaying search movies with poster, title and the year made with options to add it to WatchList and Watch page. Once movies are added to watchlist, user can delete or move the movie to watched. In watched, user can move the movie back to watchlist or delete it.

Demo link - https://chi1710.github.io/movie-watchlist-app/

This application using React, implementing React Hooks(useState, useEffect, useContext, useReducer), Context API (createContext), fetching movie data from an external API (https://www.themoviedb.org/) and storing the data in localStorage.

-install 'react-router-dom' to implement dynamic routing with ADD, WatchList and Watched. build a store (GlobalState) to stores all the state data and it holds the movie objects and build a AppReducer to kept all the function to tell the store what to do with the data. -In Add.js useState to manage all the movie datas that was fetch from API when user enter an input. Use movie object as a prop to pass it down to child compnent ResultCard.js to display all the search movies. -In ResultCard.js, using ContextAPI (createContext) for the button to save the movies in a globalstate and can be access by any components. -Each movie display in watchlist and watch is from the child component- MovieCard.js -In watchlist, Watched and MovieCard, use useContext to gain the data from globalstate. -GlobalState has an useReducer to kept all the function to transfer the state into the next state. (Add to watchlist, Add to watched, Delete from watchlist, Delete from watched) -All the movie data in watchlist and watched are store in localStorge

(https://www.youtube.com/watch?v=1eO_hNYzaSc)

movie-watchlist-app's People

Contributors

chi1710 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.