GOT Battles is a simple database of battles in Game of thrones. Check out the demo without autocomplete by following the link below:
https://got-battles-api.herokuapp.com/
The application uses an autocomplete search box to search through models for relevant information. To see the application with autocomplete, follow the instructions below to setup the project locally.
Instructions to setup the project:
-
Clone the repo
-
Run
cd got_battle
-
Run
bundle install
-
Run
rake db:migrate
-
Run
rails s
-
If there is an error while starting server: Then using command line run:
vim /usr/local/var/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/soulmate-1.1.0/lib/soulmate/server.rb
Then replace line 3:require 'Rack/contrib'
withrequire 'Rack/jsonp'
This error is caused because of the dependancy issues of several gems caused with Rails 5 and especially Rack 2.0.
-
Again run
rails s
and it should start-up fine. -
Open browser and type
localhost:3000
to access the portal.