Permalink
Browse files

Apply patch from Tino Breddin (tolbrino) to rebar-ize nitrogen_core.

  • Loading branch information...
1 parent 96eae8a commit 2d17102c36002f69bc18104c233e542c1f38f033 @rustyio rustyio committed Jan 14, 2011
Showing with 83 additions and 3 deletions.
  1. +1 −0 .gitattributes
  2. +13 −0 .gitignore
  3. +19 −0 MIT-LICENSE
  4. +4 −2 Makefile
  5. +32 −0 README.markdown
  6. +4 −0 rebar.config
  7. +4 −1 src/handlers/log/log_handler.erl
  8. +6 −0 src/nitrogen_core.app.src
View
@@ -0,0 +1 @@
+*.tmproj -crlf -diff -merge
View
@@ -0,0 +1,13 @@
+*.dump
+.DS_Store
+coverage
+.hgignore
+*.beam
+rel/nitrogen
+TAGS
+builds
+Quickstart/static/nitrogen
+Quickstart/static/doc
+.eunit/
+*.beam
+*.app
View
@@ -0,0 +1,19 @@
+Copyright (c) 2008-2009 Rusty Klophaus
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
View
@@ -1,5 +1,7 @@
+all: compile
+
compile:
- @erl -pa ./ebin -make
+ @rebar compile
clean:
- @rm -rf ebin/*.beam
+ @rebar clean
View
@@ -0,0 +1,32 @@
+# Nitrogen Web Framework for Erlang
+
+Nitrogen is an Erlang-based web framework that allows you to develop
+infinitely scaleable, Ajax-rich web applications using a pure Erlang
+technology stack.
+
+See the [Nitrogen Project website](http://nitrogenproject.com) for
+additional information.
+
+### Getting Started
+
+Download the code and move to the experimental branch.
+
+ git clone git://github.com/rklophaus/nitrogen.git
+ cd nitrogen
+
+Then, run the following...
+
+### On Mac OSX / Linux
+
+ cd Quickstart
+ ./quickstart.sh
+
+Open your web browser to http://localhost:8000
+
+### Create a New Project
+
+ make rel_inets
+ cd rel/nitrogen
+ bin/nitrogen start
+
+Open your web browser to http://localhost:8000
View
@@ -0,0 +1,4 @@
+% -*- Erlang -*-
+{erl_opts, [fail_on_warning, debug_info]}.
+{cover_enabled, true}.
+{xref_checks, [undefined_function_calls]}.
@@ -3,6 +3,9 @@
% See MIT-LICENSE for licensing information.
-module (log_handler).
+
+-compile({no_auto_import,[error/1]}).
+
-export ([
behaviour_info/1,
info/1, info/2,
@@ -44,6 +47,6 @@ behaviour_info(callbacks) -> [
{finish, 2},
{info, 3},
{warning, 3},
- {error, 4}
+ {error, 3}
];
behaviour_info(_) -> undefined.
@@ -0,0 +1,6 @@
+{application, nitrogen_core, [
+ {description, "Nitrogen Web Framework for Erlang"},
+ {vsn, "2.0.5"},
+ {applications, [kernel, stdlib, sasl]},
+ {registered, []}
+]}.

0 comments on commit 2d17102

Please sign in to comment.