Adaptation of 18.1 the Ruby Cookbook, 2nd Edition, using sinatra and amazon-ecs gems.
Make sure to have dependencies installed, which include Ruby, and the sinatra and amazon-ecs gems.
Note: Add your AWS credentials (associate tag, access key id, and secret access key) to the settings.rb
git clone git@github.com:drewbro-designs/book_search.git && cd book_search
cp settings.rb.example settings.rb # add AWS credentials
bundle install
rackup -p 3000
If everything went well, you should be able to view the app at your localhost on port 3000.
To run this as a docker container, make sure to have Docker installed.
docker build -t book_search .
docker run -p 3000:3000 book_search
It should then be viewable though a browser at "your docker container ip
" on port 3000.