-- Techflex Rails Homework
- Users(User_ID, User_Name, Email, Password, isAdmin)
- Movies(id, content, User_ID, Description)
- Comments(id, movie_id, user_id, comment, rating)
- 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
- 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
- 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