Questions tagged [nitrogen]

The Nitrogen Web Framework is a framework for building full-stack Erlang web applications.

The Nitrogen Web Framework is for making rich web applications with an emphasis on AJAX and Comet, and uses full-stack Erlang, using the Erlang webserver of your choice: Inets, Mochiweb, Yaws, or Webmachine.

Created by Rusty Klophaus (@rustyio)

Resources:

Home page with demos and tutorials: http://www.nitrogenproject.com

Github: http://github.com/nitrogen

Google Groups: http://groups.google.com/group/nitrogenweb

IRC: irc.freenode.net // #nitrogen

Twitter: @nitrogenproject

88 questions
3
votes
1 answer

How to develop Erlang Nitrogen apps in Docker

I'm trying to work out an efficient work flow for developing Erlang Nitrogen apps in Docker. Sans Docker, I would keep two terminals open: a bash terminal terminal for making source changes a Nitrogen console (erl) for compiling Erlang modules and…
Lloyd R. Prentice
  • 4,329
  • 3
  • 21
  • 31
2
votes
1 answer

Why am I getting permission denied on my Travis CI build for rebar?

I ran a build, on Travis CI and got a permission denied error: $ source ${TRAVIS_HOME}/otp/23.0/activate 3.01s$ ./rebar get-deps /home/travis/.travis/functions: line 355: ./rebar: Permission denied The command "eval ./rebar get-deps " failed.…
Ookma-Kyi
  • 41
  • 5
2
votes
1 answer

how do we efficiently handle time related constraints on mnesia records?

i am writing records into mnesia which should be kept there only for an allowed time (24 hours). after 24 hours, before a user modifies part of them, the system should remove them automatically. forexample, a user is given free airtime (for voice…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
2
votes
1 answer

Validation in erlang using nitrogen

I'm trying to do something simple with nitrogen in erlang. I have successfully set validation on text fields: wf:wire(submit, desk, #validate{ validators=[ #is_required{text="Required"} ]}), where desk_name is a textbox and submit is the button at…
lrb333
  • 65
  • 5
2
votes
3 answers

How do I use Nitrogen as a GUI frontend for an Erlang app?

I have got a basic server-side Erlang app (not fully OTP'd yet) which I start on a command-line. I want to turn it into an interactive system using a browser as GUI with Nitrogen (version 2.0.4). The general plan is to turn the current module into…
Oliver Mason
  • 2,240
  • 2
  • 15
  • 23
2
votes
1 answer

Nitrogen session

In all my nitrogen pages i use the following semantic : main() -> case wf:user() /= undefined of true -> main_authorized(); false -> wf:redirect_to_login("/login") end. When the user is logged in and in a page containing a form if the…
2
votes
1 answer

running and testing ejabberd on localhost?

I have installed ejabberd on my HP pavilion (Entertainment laptop running windows 7), during the installation i was prompted to enter the server domain. Since i wanted to experiment on it, i entered "localhost".When i try starting it, the web admin…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
2
votes
1 answer

Nitrogen Project COMET

Would Nitrogen Project's COMET be comparable to ejabberd's xmpp in stability and amount of open connections it can hold? I'm interested in seeing how much of a load Nitrogen can hold. If anyone has any data on this they'd like to share I'd greatly…
ewindsor
  • 885
  • 10
  • 24
2
votes
1 answer

Starting Nitrogen Web framework at boot time

I have always started nitrogen to run as a daemon using the command below: sudo /home/someuser/myapp/bin/nitrogen start It works well but i have to repeat the same activity should the server reboot. Most web servers by default start at boot time.…
2
votes
3 answers

Best way to log access to web pages

One of my website is using Nitrogen with a Cowboy server. I would like to log every access to web pages just like Apache does with access.log. What would be the best way to do that ?
Maeln
  • 370
  • 1
  • 21
2
votes
2 answers

How to install erlydtl to make it usable in nitrogen?

I found, that erlydtl may be used with nitrogen. Unfortunately, author hasn't described how he installed erlydtl to make it usable from nitrogen. Probably somebody has ever faced with the same issue, I'm facing with. If so, please share your…
2
votes
1 answer

How to handle a nitrogen application with source control?

As far as I know I am only supposed to put my site directory under version control. (See 1 2). However, all the tutorials mention that I should start the application via bin/nitrogen console. But where should I get the bin directory from, when I do…
Peter Zeller
  • 2,245
  • 19
  • 23
2
votes
2 answers

Nitrogen how to add element id

I can't figure out how to get Nitrogen to generate an actual id attribute of an html element. For example, In index.erl: #panel { id = "test" } or #panel { id = test } the generated html element looks like this:
. but…
Aaron Frantisak
  • 543
  • 5
  • 11
2
votes
1 answer

Error while installing Nitrogen

Thought I'd explore Nitrogen. Following install instructions outlined in http://nitrogenproject.com/doc/tutorial.html, I pulled source from GitHub, executed second step, make rel_inets, and hit a wall. Here is what the system told me: nitrogen$ make…
Lloyd R. Prentice
  • 4,329
  • 3
  • 21
  • 31
2
votes
1 answer

Frama-C: Jessie plugin can't prove bitwise-or safety (w.r.t. overflow)

I'm using Frama-C Nitrogen to analyze the following code #include "/usr/share/frama-c/builtin.h" int test() { const unsigned char a = Frama_C_interval(0, 255); const unsigned char b = Frama_C_interval(0, 255); const unsigned int c =…
XDnl
  • 470
  • 3
  • 14