##Nitrogen is simple and powerful
Nitrogen is a very elegant way of developping web applications. It is event-based, and seamlessly integrate client side and server side in some smooth erlang/elixir code.
I work on a couple projects currently. One is the usual Ruby on Rails, Angular, CoffeeScript stack like we do now. The other is Nitrogen + DynamoDB.
On the former, I keep hopping from language to language, framework to framework, enabling one layer to talk to the other. On the latter, I just write Erlang for both client and server. Nitrogen takes care of the rest. I love that.
But Rails can be so easily deployed and scaled on Heroku. I wanted the same for my Nitrogen app.
A quick Google search came up with not much; I guess it was a job for me!
##Hummmph, that was easy
Here is a skeleton project cstar/nitrogen-on-heroku with Cowboy as the webserver. How to use :
heroku create --buildpack git://github.com/archaelus/heroku-buildpack-erlang.git
git push heroku master
I generated the template from Nitrogen with
make rel_cowboy, took the generated
site directory and :
Feel free to adapt to your own liking.
Note that deployment fetches and rebuilds all the dependencies. Everytime. I do have a fork of the “official” erlang buildpack which stores deps in the Heroku cache. Fetch it at your own risk, as it’s outdated.
Thank you for your visit!
This blog is written and maintained by the guy on the left, Eric Cestari.
I do consulting and development through cstar industries SARL, based in Montreuil, France. I develop web and realtime web applications for my clients, using technologies such as the CLOUD, Erlang/OTP, ejabberd, and various web frameworks. Since 2000.