demo of websocket service with ChicagoBoss, sharing a realtime drawing
Erlang CSS HTML Shell JavaScript Batchfile Makefile
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
apps
rel
.gitignore
Makefile
README.md
fix_vsn.sh
rebar
rebar.cmd
rebar.config
rel_vsn.sh

README.md

Draw is a demo of the websocket protocol in ChicagoBoss

Background

open whiteboard is a drawing websocket javascript application, you can find more information on the given link.

https://developer.mozilla.org/fr/demosdetail/open-whiteboard

draw come as an otp application

see also draw with naga

Quickstart

Get draw

    >git clone http://github.com/mihawk/draw.git
    >cd draw
    >make rel

Start Draw

    
    >cd draw
    >rel/draw/bin/draw start
or get a console to see log :)
    >rel/draw/bin/draw console     

Open http://localhost:8001/draw in your browser, open a second web browser on the same url, or a tab in the first browser then start to draw. :)

draw is shipped with cb_admin, http://localhost:8001/admin

Digging in

Behind the scenes, you should look at:

drawing.js

draw_draw_protocol_websocket.erl

Application directory canva

    .
    ├── apps                       <----- boss app folder
    │   ├── cb_admin
    │   └── draw
    ├── deps
    │   ├── boss                   <----- all yours deps boss ... and yours
    │   └── ...
    ├── dist
    │   └── draw-<rel.vsn>.tar.gz  <----- your tarball
    ├── Makefile
    ├── rebar
    ├── rebar.config
    └── rel
        ├── files  
        │   ├── draw
        │   ├── draw.cmd
        │   ├── erl
        │   ├── install_upgrade.escript
        │   ├── nodetool
        │   ├── start_erl.cmd
        │   ├── sys.config
        │   └── vm.args
        ├── reltool.config
        └── vars.config