Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1.25 KB

_README.md

File metadata and controls

56 lines (40 loc) · 1.25 KB

Project Skeleton for the {{name}} app.

You should find in this directory:

README : this file Makefile : simple make commands rebar.config : configuration for Rebar3 /src /{{name}}.app.src : application information file for OTP /{{name}}_app.erl : base module for the Erlang application behavior /{{name}}_config.erl : configuration interface for your application /{{name}}_sup.erl : OTP supervisor for the application /{{name}}_resource.erl : a simple example Webmachine resource /priv /www : a convenient place to put your static web content

You probably want to do one of a couple of things at this point:

Build the skeleton application:

$ rebar3 compile

Start up the skeleton application:

$ rebar3 release
...
$ ./_build/default/rel/{{name}}/bin/{{name}} console

or

$ rebar3 shell

Change the basic application:

  • edit src/{{name}}_resource.erl

Add some new resources:

  • edit src/YOUR_NEW_RESOURCE.erl
  • edit src/{{name}}_config.erl's dispatch/0 function

On the fly editing

We're using sync now to do on the fly compilation of resources.

Once you're in a console, just type sync:go(). and it will recompile your files on the fly, but you'll have to use the dev profile:

$ rebar3 as dev shell