Examples

The current list of e2 examples is here:

https://github.com/gar1t/e2/tree/master/examples

calc

https://github.com/gar1t/e2/tree/master/examples/calc

A sample socket sever that interprets mathematical operations.

This example illustrates:

  • A complete e2 application

  • Use of service to listen for client connections

  • Use of tasks to handle client connections

  • Simple yecc grammar and text processing

logger

https://github.com/gar1t/e2/tree/master/examples/logger

An example of how e2_log can be extended.

It illustates:

  • Custom e2 log handlers

  • Logging to syslog from e2

mydb

https://github.com/gar1t/e2/tree/master/examples/mydb

This is the complete listing of the application developed in e2 Tutorial.

ping

https://github.com/gar1t/e2/tree/master/examples/ping

This example illustates a very simple service.

pubsub

https://github.com/gar1t/e2/tree/master/examples/pubsub

An example of a pub/sub broker in e2.

ring

https://github.com/gar1t/e2/tree/master/examples/ring

Simple “ring” implementation in Erlang – not related to e2, but interesting to see how many processes you can start in an Erlang VM.

supervise

https://github.com/gar1t/e2/tree/master/examples/supervise

A set of supervisor scenarios in e2.

tasks

https://github.com/gar1t/e2/tree/master/examples/tasks

A set task scenarios in e2.

utils

https://github.com/gar1t/e2/tree/master/examples/utils

Miscellaneous “utility” modules in e2.