#72 new
Rusty Klophaus

Make it easier to embed Nitrogen in some other Erlang application

Reported by Rusty Klophaus | May 30th, 2010 @ 05:45 PM

Create instructions, and possibly split up Nitrogen into repos in order to let folks embed Nitrogen into other applications. (For making admin interfaces, for example.)

Comments and changes to this ticket

  • Rusty Klophaus

    Rusty Klophaus June 14th, 2010 @ 06:37 PM

    • Milestone set to 2.0.2
  • Rusty Klophaus

    Rusty Klophaus June 29th, 2010 @ 08:00 PM

    • Milestone cleared.
    • Milestone order changed from “0” to “0”
  • imshahz (at gmail)

    imshahz (at gmail) July 16th, 2010 @ 03:24 AM

    Hi Rusty !

    Currently I am trying to integrate my nitrogen project with another application and have no idea how to modify my nitrogen project settings. When you are planning to work on this task?
    any idea...

    Regards,
    Shahzad Gul
    Master student
    Uppsala university

  • Rusty Klophaus

    Rusty Klophaus July 22nd, 2010 @ 02:50 PM

    Hi Shahzad,

    Hope all is well. Sorry for the delayed response, it's been a busy few weeks.

    With Nitrogen 2.0.2, some new code was added to nitrogen.erl to make it easier to embed Nitrogen in another application. You should be able to pull in the required projects (nitrogen, simple_bridge, nprocreg), and then call:

    nitrogen:start_link(CallbackModule).

    CallbackModule should expose:

    http_server() -> Return either 'inets', 'yaws', or 'mochiweb'.

    serverport() -> Return integer port.

    serverip() -> Return an ip. Format depends on your http server.

    docroot() -> "./location/to/static/content".

    handlers() -> ok. Use this to specify custom handlers.

    Hope that helps!
    Best,
    Rusty

  • imshahz (at gmail)

    imshahz (at gmail) July 29th, 2010 @ 04:30 AM

    Hi Rusty !

    Thanks for help, it works pretty smooth now. One more question, I wonder how can I use google linechartXY in nitrogen , i think nitrogen supports only linechart..

    Regards,
    Shahzad Gul

  • imshahz (at gmail)

    imshahz (at gmail) August 5th, 2010 @ 09:23 AM

    Hi Rusty !

    I don't know the exact way to do this in nitrogen but I am able to use linechartXY and some other google charts by using erlydtl templates.

    Regards,
    Shahzad Gul

  • Andrew TJ

    Andrew TJ September 1st, 2010 @ 12:45 AM

    Hi Rusty,

    Have you made any decision as to whether you will split up the various Nitrogen apps into separate repos?

    — Andrew

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Nitrogen Web Framework for Erlang

Pages