Giter Site home page Giter Site logo

brams-movies's Introduction

Bram's Movies app

Schermafbeelding 2022-06-30 om 10 47 59

Frameworks & tools

  • Vue 3 (Composition API)
  • Vue Router
  • Tailwind CSS

Start project

npm install
npm run serve

The project

Explanation

The application exists of 3 views:

  1. HomeView
  2. SearchResultsView
  3. SingleTvShowView

HomeView
This is the homepage of the application. When this view is loaded, fetchTvShows will be called. Because the API returns only 250 tv shows per page, I do two calls in this method and concat them. When this process is done, the computed property popularTvShows will exclude all tv shows without a rating. After that it will order it by their rating. For the first 20 popular tv shows, I fetch the hero image. Unfortunately the API provides this in a separate call and to prevent loading 500 images for all shows, I do only the first 20 (only those will be shown in the "Now popular" section).

SearchResultsView
This view is used to show the tv shows based on a search term. On mounted it will pick the search term from the URL and uses it in fetchShowsBasedOnSearch.

SingleTvShowView
This is the view to show more information about the selected tv show. On mounted it will fetch the data from the API and its images in a separate call, like explained in HomeView.

Bugs to fix

  • Sometimes when the application is loaded after a npm run serve, there is no image loaded in the Hero section. Please refresh the page when this happens.

Todo

  • Extract "Now popular" section to separate component
  • Extract tv shows per genre section to separate component
  • Extract fetchImages to usable
  • Add Jest tests

brams-movies's People

Contributors

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