A simple API application with sinatra and sidekiq
Ruby
Switch branches/tags
Nothing to show
Clone or download
Latest commit e2fc086 Jan 7, 2016
Permalink
Failed to load latest commit information.
config Add unicorn support Jan 7, 2016
lib refactoring Jan 5, 2016
log Add unicorn support Jan 7, 2016
spec refactoring Jan 5, 2016
.env.example Rename .env Jan 7, 2016
.gitignore Add unicorn support Jan 7, 2016
.rspec Add simple tests Jan 4, 2016
Dockerfile Change to moduler style Jan 2, 2016
Gemfile Add unicorn support Jan 7, 2016
Gemfile.lock Add simple tests Jan 4, 2016
LICENSE Initial commit Dec 28, 2015
Procfile Add unicorn support Jan 7, 2016
README.md Update README Dec 30, 2015
app.rb Add unicorn support Jan 7, 2016
config.ru refactoring Jan 5, 2016
docker-compose.yml Rename Jan 2, 2016

README.md

sinatra-sidekiq-example

A simple API application with sinatra and sidekiq.

Usage

Run docker.

$ docker-machine start dev
$ docker-machine env dev

Run web and redis containers.

$ docker-compose build
$ docker-compose run -d

Use API

$ curl -X POST -H "Accept: application/json" http://`docker-machine ip dev`:5000/things -d '{"id": 1, "thing": "foo"}'
$ curl -X GET http://`docker-machine ip dev`:5000/things