Welcome to Box Office Brawl

Rate, review, and explore movies with our interactive platform!

Browse Movies

How It Works (HELPFUL FOR GRADING):

Additions for HW6:

  • Unauthenticated AJAX GET - accessible from the Movies page - GET ALL or GET filtered by title/genre
  • Authenticated AJAX POST/PUT/DELETE - login/signin page - sign up to POST an account - go to Account page to PUT or DELETE account (must be signed in to be able to see Account page)
  • Creating new credentials can be done through the signup page, which creates Users with the role of Authors
  • OR you can create new credentials through the admin interface (which allows you to assign a role to the User as well)
  • IMPORTANT: The admin interface can be accessed by navigating to: "https://moviesforfree.strangled.net/user_table.html" -- you will be prompted for an admin login
  • Authors represent normal Users (just able to access their account and post/edit/delete their own reviews)
  • Admins represent admin Users (they are able to create new credentials through the admin interface)
  • Both Authors and Admins must authenticate to be able to access their respective features. However, Authors cannot access the Admin interface and therefore cannot modify/create other user accounts

Additions for HW5:

  • AJAX GET - accessible from the Movies page - GET ALL or GET filtered by title/genre
  • AJAX POST/PUT/DELETE - login/signin page - sign up to POST an account - go to Account page to PUT or DELETE account (must be signed in to be able to see Account page)
  • Since my POST/PUT/DELETE are creating/editing/removing users from the database, the change isn't immediately obvious on the frontend
  • However, you can see the change by logging in with your newly created username/password (confirms POST), logging in after changing your password (confirms PUT), and trying to login after deleting your account (confirms DELETE)
  • Best example of things changing in the UI as a response to a request are the original GET and POST I implemented for movies (all the stuff below - filters changing search results and win/loss value being updated on click)

Previous additions:

Example URLs for GET with/without parameters:

  • GET ALL MOVIES (returns json): "https://moviesforfree.strangled.net/movies" or just add "/movies" to the URL
  • GET A SPECFIC MOVIE BY TITLE (returns json for Moana 2): "https://moviesforfree.strangled.net?title=Moana+2" or just add "/movies?title=Moana+2" to the URL
  • GET A NONEXISTENT MOVIE (tries to get Moana 3 and returns 404): "https://moviesforfree.strangled.net?title=Moana+3" or just add "/movies?title=Moana+3" to the URL - 404 ONLY VISIBLE IN DEV TOOLS

^^^You can also do this from the Movies page through the UI

Example URLs for POST (don't work in URL - you can POST things by interacting with the "Win"/"Loss" buttons on the Movies page)

  • POST A NEW VALUE FOR WINS FOR MOANA 2: "https://moviesforfree.strangled.net/movies?title=Moana%202&wins=6"
  • POST A NEW VALUE FOR LOSSES FOR MOANA 2: "https://moviesforfree.strangled.net/movies?title=Moana%202&losses=2"

^^^POST is triggered by clicking either "Win" or "Loss"