RESTful service wrapper around rpn_ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
spec
.gitignore
.travis.yml
Gemfile
Gemfile.lock
LICENSE
Procfile
README.md
Rakefile
rpn_service.rb

README.md

Build Status

rpn_service

This is part of a toy project to explore different ways to package and deploy applications. It's a RESTful service wrapper around rpn_ruby, a Reverse Polish Notation calculator.

Local testing

To get started:

bundle install

To start the RPN calculator service locally (it uses port 3000):

ruby rpn_service.rb

To run the tests of the rpn_service microservice (the service must be running):

rake

You can also invoke the RPN calculator service from the command line like this:

curl -X GET \
     -H "Accept: application/json" \
     -H "Content-type: application/json" \
     'http://localhost:3000/calc/2/5/4/+/*'

Related projects

rpn_ruby is the 'application logic' this service wraps.

rpn_ui is a webapp that presents a user interface and calls rpn_service.