Coder Social home page Coder Social logo

mji-moviereview's Introduction

MJI Movie Review

An example Laravel Movie Review application.

Started 2024-06-23

The course is building a book review app, and I've decided to change gears to a movie review app. I want to show that I'm not copying the code verbatim.

There are a few key differences with my version vs the instructors. One of which is my preference to show both the filtered and the total ratings simultaneously.

Screenshot of MJI Movie Review

mji-moviereview's People

Contributors

markivanowich avatar

Watchers

 avatar

mji-moviereview's Issues

Ratings different filtered and unfiltered

The instructor's app will filter the reviews for a movie, which is misleading.

For example, when filtering by popular last month, a movie may say it has 3 reviews. Clicking on that movie will show it actually has 22 reviews!

Whats happening is the app is filtering the reviews and recalculating the rating based on that when in the list, but not filtering when viewing. I created two new scopes along the lines of return $query->withAvg('reviews as all_reviews_rating', 'rating'); which will keep both the filtered and unfiltered ratings.

What needs to be done is redesigning the view for a visual representation of the filtered rating and the unfiltered rating;
"2/5 stars from 3 filtered reviews, 4/5 from 22 total reviews"

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.