Code Monkey home page Code Monkey logo

crossbardemo's Introduction

Crossbar.io Demos

Crossbar.io comes with ready-to-run demos that show off different features of Crossbar.io.

The complete demo bundle is available as a Python package which you can install into your existing Crossbar.io installation and try yourself - see below.

For installation of Crossbar.io itself, please see the Getting Started.

The source-code for the demos can be found in the repository here and is open-source licensed under the Apache 2.0 license. This allows you to reuse the code even in commercial projects for use as starting points in your development.

Try it

1) Install the Demos

To install from PyPI

pip install crossbardemo

To upgrade an existing package from PyPI

pip install --upgrade crossbardemo

2) Create a new Crossbar.io node

cd $HOME
mkdir demo1
cd demo1
crossbar init --template demos

and start

cd $HOME/demo1
crossbar start

Crossbar.io will log startup

$ crossbar start
2014-04-02 14:48:08+0200 [Controller 136] Log opened.
2014-04-02 14:48:08+0200 [Controller 136] ============================== Crossbar.io ==============================
...
2014-04-02 14:48:10+0200 [Controller 136] Worker 3740: Class 'crossbardemo.basic.TimeService' (1) started in realm 'realm1' on router 101
2014-04-02 14:48:10+0200 [Controller 136] Worker 3740: Class 'crossbardemo.basic.TickService' (2) started in realm 'realm1' on router 101
2014-04-02 14:48:10+0200 [Controller 136] Worker 3740: Class 'crossbardemo.basic.MathService' (3) started in realm 'realm1' on router 101
2014-04-02 14:48:10+0200 [Worker 3740] Loaded static Web resource 'web' from module 'crossbardemo 0.3.2' (filesystem path c:\Python27\lib\site-packages\crossbardemo\web)
2014-04-02 14:48:10+0200 [Worker 3740] Site starting on 8080
...

3) Test the Demos

Open the demos entry page at http://127.0.0.1:8080 in your browser

Then, for example, open the "Chat" demos in two browser tabs to see it communicate in real-time

crossbardemo's People

Contributors

markope avatar

Watchers

anggahfz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.