Entire Node app as pulgin

112 views
Skip to first unread message

SaR

unread,
Dec 18, 2013, 6:14:03 AM12/18/13
to nod...@googlegroups.com
Hi All,

I am trying to use entire node with view css js  and controler js inside another node app.
Is it possible. Any idea on this ...

Thanks
SaR

Richard Marr

unread,
Dec 18, 2013, 10:27:09 AM12/18/13
to nod...@googlegroups.com
I don't know your use case but I'd guess it'd more trouble than it's worth. The reasons you'd want to do something like that (namely re-use of code and assets) would also be served by splitting your inherited project into multiple separate modules, e.g. data access layer, config, that you can then import into any parent projects. The parent projects might be things like website, API, admin site, CMS, static asset server, etc.

Does that make sense?




--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
 
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Richard Marr

Alex Kocharin

unread,
Dec 18, 2013, 8:09:37 PM12/18/13
to nod...@googlegroups.com
 
Yes. Just export express.js app, and don't bind it to any port inside of your module. It's quite popular practice.
 
 
18.12.2013, 15:14, "SaR" <sagunth...@gmail.com>:
--

Sagunthala R

unread,
Dec 19, 2013, 7:30:49 AM12/19/13
to nod...@googlegroups.com
Thanks for the Richard,

I trying to build a app using node and express. in the webpage i want to have header app , footer app and  also content sections are in different app.
like if i have login module as app just use that and proceed  ... basically re-use the app in order to build new one.

Will it be possible ... if yes how to proceed with.


You received this message because you are subscribed to a topic in the Google Groups "nodejs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nodejs/80MYjEMzbsI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nodejs+un...@googlegroups.com.

Sagunthala R

unread,
Dec 19, 2013, 7:31:44 AM12/19/13
to nod...@googlegroups.com
Alex thanks for your reply.

Can you explain me in more detail on how to do it.


You received this message because you are subscribed to a topic in the Google Groups "nodejs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nodejs/80MYjEMzbsI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nodejs+un...@googlegroups.com.

Gabriel Farrell

unread,
Dec 20, 2013, 11:21:01 PM12/20/13
to nod...@googlegroups.com
Sounds like you're wanting frontend widgets a la https://github.com/mikeal/jsfest2014-cfp/issues/18.

Sagunthala R

unread,
Dec 25, 2013, 11:49:33 PM12/25/13
to nod...@googlegroups.com
Thanks for your reply.

I have attached the screen shot which will help more to understand my question

Inline image 1

It will be good if i know whether this is achievable
Thanks in advance.

image.png

Leza Morais Lutonda

unread,
Dec 27, 2013, 7:17:51 AM12/27/13
to nod...@googlegroups.com
El 12/25/2013 20:49, Sagunthala R escribió:
Thanks for your reply.

I have attached the screen shot which will help more to understand my question

Inline image 1

It will be good if i know whether this is achievable
Thanks in advance.


HTML <frame> tag?

--
Leza Morais Lutonda
http://github.com/lemol

Alex Kocharin

unread,
Dec 27, 2013, 3:35:36 AM12/27/13
to nod...@googlegroups.com
 
Extremely bad idea.
 
Even adding a simple http request from app1 to app2 would be better than that.
 
 
27.12.2013, 12:17, "Leza Morais Lutonda" <lez...@fecrd.cujae.edu.cu>:
--
Reply all
Reply to author
Forward
0 new messages