Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.23 KB

quickstart.md

File metadata and controls

37 lines (29 loc) · 1.23 KB
layout title
default
getting started quickly with Webmachine

getting started quickly with Webmachine

Make sure that you have a working Erlang/OTP release, R12B5 or later (Preferably MUCH later).

A rebar3 template is provided for users quickly and easily create a new webmachine application.

{% highlight text %} $ mkdir -p ~/.config/rebar3/templates $ git clone git://github.com/webmachine/webmachine-rebar3-template.git ~/.config/rebar3/templates $ rebar3 new webmachine your_app_here {% endhighlight %}

Once a new application has been created it can be built and started.

{% highlight text %} $ cd your_app_here $ rebar3 release $ _build/default/rel/your_app_here/bin/your_app_here console {% endhighlight %}

The application will be available at http://localhost:8080.

To make this resource handle URI paths other than /, add more dispatch terms in /tmp/mywebdemo/priv/dispatch.conf; to make that resource to more interesting things, modify the resource itself at /tmp/mywebdemo/src/mywebdemo_resource.erl.

To learn how to do more interesting things, check out some examples or read more documentation.