, , ,

I added a template for creating Nitrogen applications running on Mochiweb to rebar_templates. This repackages some existing code as a rebar template. Running this template will generate a working application.

$ rebar create template=nitrogen appid=mysite
$ make
$ make run

Point your browser to http://localhost:8000 to see the sample running.

You can also clean out the samples for a bare skeleton by running

$ make full-clean

Only run that at the start of a project as it really cleans out everything. Later I’ll make it selectively clean out the initial template files.