Setup

Installing Binary

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.

Compiling Sources

If you want you can compile mad by yourself:

# git clone http://github.com/synrc/mad \ && cd mad \ && make

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 Applications: [kernel,stdlib,crypto,cowlib,ranch, cowboy,compiler,syntax_tools, erlydtl,gproc,xmerl,n2o,sample, fs,active,mad,sh] Configuration: [{n2o,[{port,8000}, {route,routes}]}, {kvs,[{dba,store_mnesia}, {schema,[kvs_user, kvs_acl, kvs_feed, kvs_subscription]}]}] Erlang/OTP 17 [erts-6.0] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false] Eshell V6.0 (abort with ^G) 1>

 




Events | Privacy Policy | Feedback | Brandbook
Copyright © 2005–2016 Synrc Research Center s.r.o.