We use browserify to assemble our application. It also handles things like pre-compiling Templates, CoffeeScript etc.
In the end the application assembled very much like any server-side node.js app. On Thursday, 19 June 2014 22:27:47 UTC+4, MC wrote: > > Hello, > I'm working on a project that provides multiple services/views as part of > one online experience. For example the system provides a list of products > (catalog) as one service, and a shopping cart as another. Both can be > rendered for web/desktop and web/mobile. In case of mobile experience some > components visible on the web/desktop site can be removed. > Currently the company is developing a large monolithic application which > is supposed to handle everything. The thing is that system is non-standard > (house built), buggy and very complex. At the moment I'm spending more time > on trying to integrate with it than on adding new features. > > I was wondering if it would be possible to share both functionality and ui > (e.g. dust templates) as nodejs modules? So that final application (e.g. > shopping cart for web/mobile) can include the modules needed and only > assemble them in app.js with some modification? > > Current project structure for nodejs keeps client/browser data in 'public' > folder, and server/service code ends up in views/libs/modules, etc. I > experimented with storing dust templates inside modules and it looks like > it can be done, but haven't tried it with client side js. > > I'd like to see if anyone has encountered similar issues when integrating > vertically separated nodejs applications into one online experience. If so > I'd appreciate it if you could share your thoughts/findings on the subject. > I'd like to find a more modular approach, something more natural for > nodejs, as a replacement for the monolithic app I'm working with today. > Thanks, > > M > > > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/c4f99cfd-00d0-42b9-98a5-425fc18657e5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
