Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tongueroo/sinatra
sintra demo
https://github.com/tongueroo/sinatra
Last synced: about 1 month ago
JSON representation
sintra demo
- Host: GitHub
- URL: https://github.com/tongueroo/sinatra
- Owner: tongueroo
- Created: 2015-02-03T02:02:21.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-10-09T22:07:30.000Z (about 3 years ago)
- Last Synced: 2024-10-14T22:16:46.826Z (3 months ago)
- Language: Dockerfile
- Size: 11.7 KB
- Stars: 12
- Watchers: 2
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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/sinatra
$ cd sinatra
$ bundle
$ ruby app.rb## Testing Locally with Docker
The app is also dockerized so you can test this via docker.
$ docker build -t tongueroo/sinatra . # you can skip this step if you want to just pull the image from DockerHub.
$ docker run --rm -d -p 4567:4567 --name sinatra-app tongueroo/sinatra
$ curl localhost:4567 ; echo
42
$ docker stop sinatra-app ; docker rm sinatra-app
sinatra-app
sinatra-app
$This demo project was used in these blog posts:
* [Gentle Introduction to How AWS ECS Works with Example Tutorial](https://blog.boltops.com/2017/09/09/a-gentle-introduction-to-aws-ecs-with-example-tutorial)
* [AWS Elastic Beanstalk: Under the Hood](https://blog.boltops.com/2017/07/19/under-the-hood-of-aws-elastic-beanstalk-part-1)