SAMPLE

REBAR3

Picture 1. OTP tools
$ git clone git://github.com/synrc/sample $ cd sample $ rebar3 shell $ open https://127.0.0.1:8001/app/index.htm

START

Picture 2. Minimal Configuration
{deps, [{cowboy, ".*", {git, "git://github.com/voxoz/cowboy2", []}}, {nitro, ".*", {git, "git://github.com/synrc/nitro", []}}, {n2o, ".*", {git, "git://github.com/synrc/n2o", []}}, {kvs, ".*", {git, "git://github.com/synrc/kvs", []}}, {syn, ".*", {git, "git://github.com/ostinelli/syn", []}} ]}.
Picture 3. Development Release
Eshell V10.1.1 (abort with ^G) 1> application:which_applications(). [{sample,"SAMPLE WebSocket application","0.7.0"}, {nitro,"NITRO HTML5 DSL","3.10"}, {syn,"A global Process Registry and Process Group manager.","2.1.1"}, {cowboy,"Small, fast, modern HTTP server.","2.8.0"}, {ranch,"Socket acceptor pool for TCP protocols.","1.7.1"}, {ssl,"Erlang/OTP SSL application","10.1"}, {public_key,"Public key infrastructure","1.9.1"}, {kvs,"KVS Abstract Chain Database","7.9.1"}, {cowlib,"Support library for manipulating Web protocols.","2.9.1"}, {crypto,"CRYPTO","4.8"}, {asn1,"The Erlang ASN1 compiler version 5.0.14","5.0.14"}, {n2o,"N2O MQTT TCP WebSocket","7.10.0"}, {inets,"INETS CXC 138 49","7.3"}, {mnesia,"MNESIA CXC 138 12","4.18"}, {syntax_tools,"Syntax tools","2.1.6"}, {compiler,"ERTS CXC 138 10","7.2.6"}, {stdlib,"ERTS CXC 138 10","3.13.2"}, {kernel,"ERTS CXC 138 10","7.1"}]

Sample Application

Picture 3. N2O Review Application

Related Documents