TianliJin / recon_web

See recon information on web (through websocket/cowboy)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


##recon_web Build Status

A web tool using recon to monitor erlang node status.

Base on

recon, cowboy websocket, socket.io.client, hightchat


##Demo

Demo

$ open http://127.0.0.1:8080/


###Get Start:

  • Get deps and compile && start in erlang shell mode:

    $ make && make shell $ open http://127.0.0.1:8080/

  • Combined with your system:

    1> application:ensure_all_started(recon_web).

    2> application:stop(recon_web).


###Config

  • Recommend using Line command

    $ make config IP=127.0.0.1 PORT=8080

  1. it will modify Client IP and PORT:

    /priv/js/recon_web.js

    var socket = io.connect('http://yourhost:yourport');

  2. it will modify Server IP and PORT:

    /src/recon_web.app.src

    {ip,{"127.0.0.1"}},%% default :localhost,better using nginx to proxypass

    {port,8080}]}


###Some Useful Command

Command Action
make help erlang.mk's help
make config IP=127.0.0.1 PORT=8080 configure IP and Port
make debug compile && start debug shell mode lager:debug
make shell start info shell mode lager:info
make start start a demon erlang node by heart
make stop stop erlang node
make clean_all clean all beam (include deps beam)
make remsh remsh mode shell
rake

###Flow pic

About

See recon information on web (through websocket/cowboy)

License:Apache License 2.0


Languages

Language:JavaScript 75.4%Language:Erlang 19.8%Language:HTML 3.5%Language:Makefile 0.7%Language:Ruby 0.6%