websockets framework toghter with cowboy as described in book
Erlang JavaScript CSS Makefile
Permalink
Failed to load latest commit information.
demos Cowboy changed in a non backwirds compatable and undocumented way Oct 3, 2013
priv fixed readme and index with better explanation Dec 13, 2012
src
.gitignore first complete package Dec 12, 2012
LICENSE Added a license Dec 12, 2012
Makefile Update Makefile to grab dependencies if missing Dec 14, 2012
README.md fix README.md and clock1.html doc typos May 14, 2013
rebar.config first complete package Dec 12, 2012

README.md

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