Git Product home page Git Product logo

erlapp.template's Introduction


      erlapp.template

           a basic erlang/OTP application skeleton

This is a minimal erlang/OTP app, with everything you need to get up and
running. It tries to follow best practices, while providing everything necessary
to start development.
Compared to rebar's "create-app", erlapp is much more complete. It includes
the following files and folders:
    
      ebin/                % .app and .beam files
      deps/                % dependencies
      dev/
      | start              % startup script
      | start.args         % startup arguments
      |
      priv/                % application-specific files
      src/
      | erlapp.app.src     % erlapp.app template
      | erlapp.erl         % entry-point
      | erlapp_app.erl     % application
      | erlapp_sup.erl     % supervisor
      | erlapp_server.erl  % gen_server
      |
      Makefile
      rebar.config
      .gitignore

erlapp also comes with the sync <https://github.com/rustyio/sync> utility,
which recompiles and reloads changed code. 

install
-------

Make sure you have the latest version of rebar installed, then clone this
repo into ~/rebar/templates.

    $ mkdir -p ~/.rebar/templates
    $ cd ~/.rebar/templates
    $ git clone --recursive git://github.com/cloudhead/erlapp.template.git

setup
-----

Create the app skeleton, set `appid` to the app name

    $ rebar create template=erlapp appid=myapp

Build the application

    $ make all

Start the development console

    $ dev/start

Modules should get recompiled/reloaded when their source is changed. You can also
compile the whole project with `make`. Check the Makefile for additional commands.


erlapp.template's People

Contributors

cloudhead avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.