Fanterlastic Four
Fanterlastic Four is a proof of concept of how Serlvers is used to provide four very basic services.
These services are:
They are a bit useless but they are good example (because they are very simple).
Getting
Download Fanterlastic Four 0.1.0 as a tarball or the 0.1 branch (may contain more bugfixes which will appear on version 0.1.1) with:
darcs get http://software.pupeno.com/FanterlasticFour-0.1
Requirements
Here I list what I use, but other versions, newer and older, may work. I am interested in knowing either case, working or not to try to fix them and/or list them:
- SCons 0.96.1
- SCons Erlang 0.1.0
- Erlang/OTP R10B-10
- Serlvers Unreleased
Installation
TODO: Outdated, rewrite!!!!!!!!!!!!!!!!!!
SCons is used to compile and install this package.
First check out the variables you need to set by running:
scons --help
You’ll need to set PREFIX, the prefix directory (where Erlang is installed, it contains something like: bin erts-5.4.13 Install lib misc releases usr) and at the same time you set it, it’ll compile.
Then run:
scons install
to install. You might need sudo or su to reach superuser capabilities.
For example:
$ scons PREFIX=/usr/lib/erlang/
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
erl -noshell -run edoc_run files '["src/fanterlasticfour_app.erl","src/fanterlasticfour_sup.erl","src/echo.erl","src/chargen.erl","src/daytime.erl","src/time.erl"]' '[{dir, "doc/"}]' -run init stop
erlc -o src/ src/chargen.erl
erlc -o src/ src/daytime.erl
erlc -o src/ src/echo.erl
erlc -o src/ src/fanterlasticfour_app.erl
erlc -o src/ src/fanterlasticfour_sup.erl
erlc -o src/ -I src/ src/fanterlasticfour.rel
erlc -o src/ src/time.erl
scons: done building targets.
$ sudo scons install
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
Install file: "src/fanterlasticfour.boot" as "/usr/lib/erlang/bin/fanterlasticfour.boot"
Install file: "src/fanterlasticfour.script" as "/usr/lib/erlang/bin/fanterlasticfour.script"
Install file: "src/chargen.beam" as "/usr/lib/erlang/lib/fanterlasticfour-0.1.0/ebin/chargen.beam"
Install file: "src/daytime.beam" as "/usr/lib/erlang/lib/fanterlasticfour-0.1.0/ebin/daytime.beam"
Install file: "src/echo.beam" as "/usr/lib/erlang/lib/fanterlasticfour-0.1.0/ebin/echo.beam"
Install file: "src/fanterlasticfour.app" as "/usr/lib/erlang/lib/fanterlasticfour-0.1.0/ebin/fanterlasticfour.app"
Install file: "src/fanterlasticfour_app.beam" as "/usr/lib/erlang/lib/fanterlasticfour-0.1.0/ebin/fanterlasticfour_app.beam"
Install file: "src/fanterlasticfour_sup.beam" as "/usr/lib/erlang/lib/fanterlasticfour-0.1.0/ebin/fanterlasticfour_sup.beam"
Install file: "src/time.beam" as "/usr/lib/erlang/lib/fanterlasticfour-0.1.0/ebin/time.beam"
Install file: "src/chargen.erl" as "/usr/lib/erlang/lib/fanterlasticfour-0.1.0/src/chargen.erl"
Install file: "src/daytime.erl" as "/usr/lib/erlang/lib/fanterlasticfour-0.1.0/src/daytime.erl"
Install file: "src/echo.erl" as "/usr/lib/erlang/lib/fanterlasticfour-0.1.0/src/echo.erl"
Install file: "src/fanterlasticfour_app.erl" as "/usr/lib/erlang/lib/fanterlasticfour-0.1.0/src/fanterlasticfour_app.erl"
Install file: "src/fanterlasticfour_sup.erl" as "/usr/lib/erlang/lib/fanterlasticfour-0.1.0/src/fanterlasticfour_sup.erl"
Install file: "src/time.erl" as "/usr/lib/erlang/lib/fanterlasticfour-0.1.0/src/time.erl"
scons: done building targets.
$
Development
You can download the development branch that is updated to the minute. This version is unstable, it might not even work. To download it you have to use Darcs and run:
darcs get http://software.pupeno.com/FanterlasticFour
Contact
To contact the author go to http://pupeno.com/contact