SinatraWebsocketTemplate
SinatraWebsocketTemplate
is for generating a skeleton of WebSocket application with Ruby(Sinatra)
A concept of the skeleton code is inspired by the following article:
Using WebSockets on Heroku with Ruby | Heroku Dev Center
Installation
$ gem install sinatra_websocket_template
Usage
4 steps to run a skeleton demo application;
$ sinatra_websocket_template new YOUR_PROJECT_NAME
$ cd YOUR_PROJECT_NAME
$ bundle install
$ bundle exec foreman start
Open http://localhost:5000 to review it, then modify it as you like.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request