Skip to content

BrianMMcClain/fortune-teller-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fortune Teller Demo (Ruby)

A rewrite of the Spring Fortune Teller demo in Ruby, made of two components, the UI and the Fortune Service.

Running the demo locally

Both applications are simple Sinatra applications using the Rack.

  1. Start the Fortune Service
cd fortune-teller-server
rackup -p 9293
  1. In a sercond terminal, start the UI
cd fortune-teller-ui
rackup
  1. Access the UI at http://localhost:9292

Connecting the UI to the Fortune Service

By default, the UI will look for the Fortune Service at http://localhost:9293, however this can be changed when deployed to Cloud Foundry using a User-Provided Service and binding it to the deployed version of the UI.

cf create-user-provided-service fortune-server -p '{"url":"http://fortune-server.cfapps.io"}'

cf bind-service fortune-ui fortune-server

About

A rewrite of the Spring Fortune Teller demo in Ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published