Skip to content

jenniferhalloran/viewing_party_lite

 
 

Repository files navigation

Viewing Party

About This Project

Viewing Party is a Rails web application in which users can explore movie options and create a viewing party event for themselves and include other users of the application. This repository is an extension of the Turing Viewing Party Lite Pair Project with additions of authentication, authorization, and session features. The Movie Database(TMDB) API endpoints are used to power movie searches and render various movie data to the user.

(back to top)

Navigating Production Site

  1. Visit https://viewing-party-lite-tj.herokuapp.com/
  2. Register as a new user (can use dummy email) or log in as: user@example.com, password: supersecret.

(back to top)

Features Implemented:

  • Pages
    • Welcome page with links to Register/Login/Discover movies
    • User Login page
    • User registration page (*user authentication)
    • User Dashboard with sections to add/view friends and view past/(and cancel/leave) upcoming viewing parties (*user authentication)
    • Discover movie page(logged in or not) that allows movie searches by name or top movies; shows 20 results per page.
    • Movie show page that displays movie title, runtime, genre, rating, summary, cast and review author and content.
    • New Party page that allows user to start a viewing party (*user authentication, *custom validator for party duration)
    • Admin dashboard that allows admin to view all users' email and creation date and view/delete any viewing parties (*admin authentication)
    • Admin user page(via user email link on admin dashboard) that allows admin to view user's dashboard.
    • Total of 5 API TMDB endpoints via API authentication consumed following facades, poros, services framework structure:
      • Top20 movie search:
        https://api.themoviedb.org/3/movie/top_rated
        
      • Partial movie title search:
        https://api.themoviedb.org/3/search/movie?&query=#{keyword}&page=#{page}
        
      • Movie info search:
        https://api.themoviedb.org/3/movie/#{movie_id}
        
      • Movie cast search:
        https://api.themoviedb.org/3/get_url("/movie/#{movie_id}
        
      • Movie review search:
        https://api.themoviedb.org/3/movie/#{movie_id}/reviews
        

API endpoints Reference: The Movie Database

(back to top)

Installation

  1. Fork and/or Clone the repo
git clone git@github.com:jenniferhalloran/viewing_party_lite.git
  1. Install gems and dependencies
 bundle install
  1. Set up figaro to securely use API key
bundle exec figaro install
  1. To use the API services provided by TMDB, add the following line in the hidden root/application.yml file generated from step 3:
 tmdb_api_key': '6a31677f95a3e6923d1ecd6e9b5fd07c
  1. Setup and seed database
 rails db:create
 rails db:seed 
  1. Run run test suit
bundle exec rspec

(back to top)

Built With

(back to top)

Versions

(back to top)

Contributors

(back to top)

Acknowledgments

The soft search function is powered by the movie database API services:

(back to top)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 81.2%
  • HTML 16.6%
  • JavaScript 1.4%
  • CSS 0.8%