eugeneotto / demo-ufo

sinatra for ufo demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test Project for Demo

This project contains a small sinatra app that prints out some text. It listens on the default 4567 port.

Testing Locally with Mac OSX

$ git clone https://github.com/tongueroo/demo-ufo
$ cd demo-ufo
$ bundle
$ ruby hi.rb

Testing Locally with Docker

The app is also dockerized so you can test this via docker.

$ docker build -t tongueroo/demo-ufo . # you can skip this step if you want to just pull the image from DockerHub.
$ docker run --rm -d -p 4567:4567 --name demo tongueroo/demo-ufo
$ curl localhost:4567 ; echo
42
$ docker stop demo ; docker rm demo
hi
hi
$

This demo project is use to demonstrate ufo. More info here: http://ufoships.com/quick-start/

About

sinatra for ufo demo


Languages

Language:Ruby 68.3%Language:HTML 25.4%Language:Dockerfile 3.5%Language:Shell 2.8%