Git Product home page Git Product logo

stream's Introduction

logo

stream

Visit the live stream site here, hosted with Heroku.


What is stream?

Stream is a concept movie streaming site that fetches data from the TMDB API, a huge online movie database. Stream has been built using Nuxt.js (SSR for Vue.js), Vuetify, and Vuex.


How to run locally

Clone and install dependencies (requires Node v12 or later)

1. git clone https://github.com/NicholasRoy96/stream.git
2. cd stream
3. npm install
4. npm run dev

Features

  • A homepage that fetches data of popular and top-rated movies, TV series, trending actors, and recently viewed pages, allowing the user to navigate any of these categories.
  • Pages for each genre and keyword that list all movies of the selected genre and infinitely loads more movies as the user scrolls.
  • A dynamic movie page that contains information of a selected movie, including trailers, cast, collections, and similar movies.
  • A dynamic TV series page that contains information of a selected movie, including episode/seasons, trailers, cast, and similar TV series.
  • A dynamic actor page that contains information of a selected actor, including their most notable credits.
  • A watchlist (essentially a cart) that users can add and remove movies from.
  • A live search that enables users to search for any film in the database.
  • Distinct page layouts based on user viewport (i.e. Mobile vs. Laptop)

Notes and points for improvement

Testing

  • With the size the site grew to become, I have tested all pages and components.
  • However, I have written tests for one component using Jest (MovieCard.vue) as an example of how I could test the other pages and components. Run npm test to test this component.

Genres

  • With the way the TMDB API is designed, fetching a list of the current genres only returns a genre id and name. To fetch any further information about a genre (including image paths), a separate API request must be made for each genre.
  • As a consequence, I would have needed to make ~20 separate API requests just to receive a placeholder image for each genre card on the homepage.

Hosting

  • The site is currently hosted using a free tier of Heroku. In a production environment, paying for better hosting (and using a custom domain name) would improve the site look and performance.

stream's People

Contributors

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