progapandist / anycable_rails_demo

AnyCable Rails demo application and its different variations

Home Page:http://demo.anycable.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unit Tests System Tests

AnyCable Rails Demo

This repository contains the code for AnyCable Rails demo application and its different variations.

List of all demonstration PRs

Installation

This app has a Docker-first configuration based one the Ruby on Whales post.

You need:

  • docker and docker-compose installed.

For MacOS just use official app.

  • dip installed.

Run the following command to build images and provision the application:

dip provision

Running

You can start Rails server along with AnyCable by running:

dip up rails anycable

Then go to http://localhost:3000/ and see the application in action.

Debugging

If you want to run Rails server and/or with debugging capabilites, run the following commands:

# for Rails server
dip rails s

# for AnyCable
dip anycable

Testing

We separate unit and system specs and provide convenient Dip commands to run them:

# only unit tests
dip rspec

# only system tests
dip rspec system

# NOTE: if you encounter random multi-session tests failures,
# try stopping AnyCable WebSocket server
dip stop ws_test

Resources

Aknowledgements

Built and tested with the help of these awesome technologies:

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/anycable/anycable_rails_demo.

License

The application is available as open source under the terms of the MIT License.

About

AnyCable Rails demo application and its different variations

http://demo.anycable.io/

License:MIT License


Languages

Language:Ruby 49.8%Language:HTML 29.8%Language:JavaScript 12.9%Language:SCSS 5.8%Language:Dockerfile 1.6%Language:Shell 0.0%