Sha256: b9c82d1906621551a47f4ce568693fcfdeca92acdaf63a190dd7189d608d56f3

Contents?: true

Size: 567 Bytes

Versions: 3

Compression:

Stored size: 567 Bytes

Contents

# Very basic and simple example of using Hoth

This is a very simple example of using Hoth. It shows you how to define a module (math)
and a service (addition) using a very basic RackProvider. It also demonstrates how Hoth 
choose if it should invoke the service by a remote call or locally (this works by
looking for a local implementation of the service, see `simple_client.rb`).

To run this example you need to start the RackProvider first:

    cd example/simple
    rackup simple_provider.ru
    
Next: Run the client:

    ruby simple_client.rb
    
Have fun!

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hoth-0.4.2 example/simple/README.md
hoth-0.4.1 example/simple/README.md
hoth-0.4.0 example/simple/README.md