gem install bundler
bundle install
bundle exec rackup -p 9292 config.ru
open http://localhost:9292
The app includes rspec unit tests and end-to-end capybara tests using Rack driver, thus the JS handlers can't be tested yet and require another driver.
bundle exec rspec
The app is deployed to https://openlib-demo.herokuapp.com/ via Heroku's pipeline.
Sample request:
Response:
{
"success": true,
"payload": [
{
"title": "Abba Abba",
"authors": "Anthony Burgess",
"link": "https://openlibrary.org/works/OL1386723W"
},
{
"title": "ABBA Gold - Greatest Hits",
"authors": "ABBA",
"link": "https://openlibrary.org/works/OL26541836W"
},
...
]
}