Skip to content

Instantly share code, notes, and snippets.

@SilverSoldier
Last active January 8, 2018 05:39
Show Gist options
  • Save SilverSoldier/8f592b5f3d307ae0969771eb16a06ecc to your computer and use it in GitHub Desktop.
Save SilverSoldier/8f592b5f3d307ae0969771eb16a06ecc to your computer and use it in GitHub Desktop.
Compiling and running an erlang application

Use rebar3 to compile and run erlang applications

Creating new application

rebar3 new app <appname>

Directory structure should be as follows:

|-rebar.config
|-src
  |-myapp.app.src
  |-myapp_app.erl
  |-myapp_sup.erl

myapp.app.src should end with a full stop

Compiling and running

rebar3 shell --apps myapp will run the shell, compile it and load the functions for usage

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment