YimengL / movie-database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Movie Database

-- Techflex Rails Homework

Data Scheme

  • Users(User_ID, User_Name, Email, Password, isAdmin)
  • Movies(id, content, User_ID, Description)
  • Comments(id, movie_id, user_id, comment, rating)

Tips

  • Run the server on c9 ide
$ rails server -b $IP -p $PORT
  • Run Minitest
$ bundle exec rake test
  • Reset the database
$ bundle exec rake db:migrate:reset
  • Database Migrate
$ bundle exec rake db:migrate
  • Rollback Migrate
$ bundle exec rake db:rollback
  • Run on Heroku
$ bundle exec rake test
$ git push heroku
$ heroku run rake db:migrate
  • Heroku console
heroku run console --sandbox

Requirements:

  • Your website should be in the Ruby on Rails Framework.
  • Your example must run on Heroku, and your code must be on GitHub.
  • You should have an administrative interface to add in new movies.
  • The moives should have a picture field, to upload a DVD cover, or movie poster cover.
  • The movie should have a description of the movie; a synopsis.
  • Your homepage should consist of a searchable list of movies, including an average review score from users.
  • Users should not be able to review the same movie twice.
  • Reviews should consist of a score and a comment
  • Put your best foot forward; make sure the front-end looks as nice as possible

Optional:

  • The URL for the movies should be friendly. Instead of showing [/movies/7], make it say something such as [/movies/Iron_Man] or [/movies/iron_man] for your query string.
  • Your search should support partial works; "Man" in the search would bring up "Batman Begins" if that movie was in your database
  • if a user should be able to edit their existing review.
  • Average review score should be shown. Showing the average of all the movie's scores as the average score
  • Make a log-in interface for your administrators. While you could have a seperate URL unknown to users, it is safer if it is behind an administrative login.
  • Send an email to new users thanking them for signing up.
  • Facebook or Google OAuth login in addition to your own login
  • The page should look good on your phone as well as your desktop
  • Pagination

About


Languages

Language:Ruby 69.1%Language:HTML 23.8%Language:CSS 4.3%Language:CoffeeScript 1.8%Language:JavaScript 1.0%