Fresh version of mad included as a binary in its primary github repository:
# curl -fsSL https://raw.github.com/synrc/mad/master/mad > mad \
&& chmod +x mad \
&& sudo cp /usr/local/bin
Or you may want to add mad to your PATH.
If you want you can compile mad by yourself:
# git clone http://github.com/synrc/mad \
&& cd mad \
Note that mad uses mad to build mad. It’s mad.
Creating a sample N2O project
mad also comes with N2O templates. So you can bootstrap a N2O-based site
just having a single copy of mad binary.
# mad app sample
# cd sample
# mad deps compile release sample
After that you can just run escript web_app under Windows, Linux and
Mac and open http://localhost:8000.
C:\> escript sample
Erlang/OTP 17 [erts-6.0] [64-bit] [smp:4:4]
Eshell V6.0 (abort with ^G)