Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Make it easier to embed Nitrogen in some other Erlang application

#72

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.)

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

State: new
Milestone: none
Assigned to: nobody

Activity

  1. Rusty Klophaus
  2. Rusty Klophaus
    Rusty Klophaus
    • Milestone cleared.
    • Milestone order changed from 0 to 0

    June 29th, 2010 @ 08:00 PM

  3. imshahz (at gmail)
    imshahz (at gmail)

    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

    July 16th, 2010 @ 03:24 AM

  4. Rusty Klophaus
    Rusty Klophaus

    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

    July 22nd, 2010 @ 02:50 PM

  5. imshahz (at gmail)
    imshahz (at gmail)

    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

    July 29th, 2010 @ 04:30 AM

  6. imshahz (at gmail)
    imshahz (at gmail)

    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

    August 5th, 2010 @ 09:23 AM

  7. Andrew TJ
    Andrew TJ

    Hi Rusty,

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

    — Andrew

    September 1st, 2010 @ 12:45 AM

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.