ably / giveitalob

A fun realtime demo - see how high you can throw your phone
1 stars 3 forks source link

Lob - How high can you throw your phone?

Ably is the platform that powers synchronized digital experiences in realtime. Whether attending an event in a virtual venue, receiving realtime financial information, or monitoring live car performance data – consumers simply expect realtime digital experiences as standard. Ably provides a suite of APIs to build, extend, and deliver powerful digital experiences in realtime for more than 250 million devices across 80 countries each month. Organizations like Bloomberg, HubSpot, Verizon, and Hopin depend on Ably’s platform to offload the growing complexity of business-critical realtime data synchronization at global scale. For more information, see the Ably documentation.

Demo: giveitalob.com

Demonstrating realtime connection between web browsers. Powered by Ably.

Installation

Requires Ruby, RubyGems, Node.js and Npm to be installed.

  1. Clone source from github.
).
git clone https://github.com/ably/giveitalob
cd lob
  1. Fetch dependencies.
bundle
npm install
git submodule init && git submodule update
  1. Create database, requires postgres to be set up and user and passwords to be set.
createdb lob_development
rake db:migrate:up
  1. Obtain an Ably API key and add to .env. See .env.example for an example of how to configure this file.

  2. Build your assets. npm run build to build and copy assets. If you want the app to rebuild assets automatically, try rerun -d assets,client npm run build.

  3. Run the local version by executing puma. If you want the app to reload automatically when changes are made, try rerun -d config,server puma. The application will the be available on all network interfaces on port 5000.

Tests

Run all the tests through rake and npm.

rake test