Movie History is created by Amy Lee Bennett, Mathew Ostrander, and Andri Alexandrou.
- Must have the ability to register a user in Firebase
- Must have the ability to log in
- You must use Firebase to store movies
- You must be able to add movies
- You must be able to remove movies
- Each movie must have the following properties
- Movie name
- Year released
- An array of major actors
- An integer rating of 1-5
- A boolean value that, if true, means that you have Watched the movie
- You must be using Grunt to automate SASS compilation
Please view our Trello board for development progress and good places to jump in.
Need to Install: Jquery, Handlebars, Lodash, HandleBars, Q, Bootstrap, Firebase, Bootstrap, Stars (bootstrap plugin), seiyria-bootstrap-slider
To install slider
bower install seiyria-bootstrap-slider
Make sure this is linked in index.html
<link rel="stylesheet" type="text/css" href="lib/bower_components/seiyria-bootstrap-slider/dist/css/bootstrap-slider.min.css">
and require config file includes
dependencies : Defines bootstrap, jquery, handlebars, firebase, q
main : includes require.config information
login : Logs an existing user into site, pulling information from firebase
user-sign-up : Authenticates a new user and pushes user email, password into firebase
authcall : Deferred promise that returns authentication with email and pw create-user-in-private-firebase : When you sign up, function createTheUser stores a users email and password as a promise, and gets called with sign up in centra-handling file.
loadSearch : Populates movies from omda api and inserts into handlebar template each_movie.hbs on search movies in nav through PopulateMovies function. With clickToAdd function, movies populated through search are then stored into firebase when add button is clicked. Function addSearchModal has a modal appear when searched movies are clicked on. Modal includes title of movie, year, and actors.
grabMovies : Stores movies added by user in firebase under user key. Adds rating key set to 0, and Watched key set to false.
user-library: Allows the users library of movies to be populated or used in other modules.
movie-change: function rateMovie users stars plugin to store change of rating through ajax Patch method. Function watchMovie changes watch key in firebase through Patch Method when Watched on main page gets clicked.
delete-movie: Creates promise of ajax delete method to delete whole key in firebase & page.