lostcolony / ezwebframe

websockets framework toghter with cowboy as described in book

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ezwebframe

Pronounced "Easy web frame."

Ezwebframe attempts to make web programming just a little bit easier.

Erlang thinks that the browser is an Erlang process. To get the browser to do something, Erlang sends a message containing a command to the browser.

A typical message might be:

Browser ! [{cmd,fill_div},{id,div1},{txt, Bin}]

Assuming the browser has a div with id = div1, then the div will be filled with some HTML contained in the binary Bin.

Likewise buttons and controls in the browser, when pressed, send messages to Erlang.

This system is built using websockets together with cowboy and is described in my book Programming Erlang (2'nd edition) (To be published in 2013).

NOTE

This has only been tested in the chrome browser. Life is too short to test this in all known browsers.

INSTALLATION

This program uses rebar to fetch and install the necessary dependencies. First you need to install rebar. If you don't have rebar then you can install a pre-build binary from https://github.com/rebar/rebar/wiki/rebar.

To run the demos

   $ make

About

websockets framework toghter with cowboy as described in book

License:Other


Languages

Language:Erlang 53.8%Language:HTML 25.2%Language:JavaScript 17.2%Language:CSS 3.5%Language:Makefile 0.4%