This app will use a ActiveRecord to track movies and actors through a many-to-many relationship. Users will be able to see the relationship between two actors.
- HTML
- CSS
- JavaScript
- Jquery
- Bootstrap
- Postgres
- psql
- Ruby
- Sinatra
- API from IMDB
Behavior | Input | Output |
---|---|---|
goes to homepage | user visits homepage | and sees two forms to add two different actors names |
submit two forms to see the degree | the user inputs two actors | user sees the separation between the two inputted actors |
clicks on individual movie | user goes to the movie page | user sees the cast of the movie |
user clicks on the individual actor link | user taken to actor page | user can see all movies the actor has been in |
$ git clone https://github.com/nrsantamaria/six-degrees.git
$ cd six-degrees
$ bundle install
$ atom .
$ postgres
$ rake db:create
$ rake db:migrate
$ rake db:test:prepare
$ ruby app.rb
- visit
localhost:4567/load-db
- refresh the page
$ ruby app.rb
- Open your browser and enter
localhost:4567
as the URL path.
If autocomplete is not working, inspect element and click error message and it will display the actors name that is causing the error
- Example Brad "Chip" Pope, Rodney "Bear" Jackson.
- Find the actor by their id, and delete the actor from your database.
Please contact Nicole Santamaria at [email protected] if you have any questions.
This software is licensed under MIT license.
Copyright (c) 2017 Nicole Santamaria, James Higgins, Nick Powell, Jason Ainsworth