CA2 "Kaiten" Programs

pikatenor authored on 2 Feb 2016
middlewares remove redis 2 years ago
public overflowのおかげで全てが解決した 2 years ago
views fix switcher 2 years ago
.env init 2 years ago
.env.sample provide a .env sample 3 years ago
.gitignore bundleとかredisとか 2 years ago
Gemfile maru 2 years ago
Gemfile.lock maru 2 years ago
Procfile remove redis 2 years ago
README.md add heroku button 3 years ago
app.json 作ったという感じです 2 years ago
app.rb use wss on production 2 years ago
config.ru initial commit 4 years ago
dump.rdb cleanup 2 years ago
README.md

Ruby WebSockets Chat Demo

Deploy

This is a simple application that serves tasty WebSockets to your users with faye-websocket, Puma, and Sinatra.

Check out the live demo or read the docs.

Setup

To install all the dependencies, run:

bundle install

Next the app requires some env vars for configuration. A sample .env.sample is provided for running the app locally. You can copy .env.sample to .env which foreman will pick up.

Using foreman we can boot the application.

$ foreman start

You can now visit http://localhost:5000 to see the application.