Skip to content

muxspace/rebar_templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description
This project contains some common project configurations for rebar.

Installation
To install, drop these into an existing ~/.rebar/templates. If you don't have
this directory you can clone directly into it.

$ git clone git://github.com/muxspace/rebar_templates.git ~/.rebar/templates

Library
A library is non-executable and is included as a dependency in other projects.
To set up a library, run the following command.

$ rebar create template=library appid=<app name>

Application
The application template is slightly different from the built-in simpleapp
template insomuch that it is designed for multi app support. Hence the 
directory structure is modified accordingly.

$ rebar create template=otpapp appid=<app name>

In addition, a Makefile is provided that picks up the app.src version and uses
that when building a release (assuming you've run create-node).

Nitrogen
This template will generate a fully functional app with two pages (based on 
the original templates). 

$ rebar create template=nitrogen appid=<app name> [port=8000]

To remove the example pages for a truly clean project, run 

$ make full-clean

Author
Brian Lee Yung Rowe

About

Templates for rebar build tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages