Code Monkey home page Code Monkey logo

movie-lister's Introduction

Movie Lister

link

https://illustrious-elf-b43760.netlify.app/

Preview

movie-lister.mp4

(there is a bug with watchlist icon's state in this video that has since been resolved)

Tech

  1. SvelteKit w/ Vite
  2. Vanilla CSS

Functionality

  1. View all movies with Infinite scrolling.
  2. Search movies with movie name or genre with infinite scrolling.
  3. Get movie details, like description, director, cast, rating, and genres.
  4. Movie recommendations for each movie.
  5. Add or remove movies to the Watchlist as an efficient local cache to remove un-needed API calls.

Notes:

  • App was built with effeciency in mind, not design.
  • No UI library was used, all vanilla CSS.
  • Due to the infinite scrolling, API Key is visible on the client through network requests.
    • This would not be the usual case.
  • The watchlist uses session storage, and it is split into two different keys.
    1. watchlist
      • This contains an ordered list of cached movie details, so that the server does not need to be hit when on /watchlist.
    1. watchlist_lookup
      • This is the O(1) lookup of movies so that each watchlist icon can instantly determine if the current movie_id is cached in the watchlist
    • When a movie is added to the watch list, it goes into both lists
    • When a movie is removed, it only gets removed from the watchlist_lookup to ensure it is a quick process
    • When the movies are retrieved, they are retrieved from the watchlist list in an ordered, and deduped way by utilizing the watchlist_lookup. The results are then uesed to replace the watchlist session incase there were any duplicates or extra cached data.
  • The similar movies feature uses an API; however, in a real use-case. This would run off of a data pipeline and embedding model to join embeddings together based on many movie factors to determine the nearest nodes of movies. A traditional KNN process would be fine here, but could be expanded to determine users' watchlist to map which movies share a userbase.

movie-lister's People

Contributors

brandonarmand avatar

Watchers

 avatar  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.