> On Thu, May 31, 2012 at 6:43 AM, Martin Cooper <
mfnc...@gmail.com> wrote:
>>
>> On Wed, May 30, 2012 at 4:58 AM, Amjad <
iss...@gmail.com> wrote:
>> > Hello everybody!
>> >
>> > I'm new to the great world of Node.js and have been playing around with
>> > different modules and frameworks. However, there seems a lot of methods
>> > for
>> > sharing server code with the client, and there are no default way for
>> > doing
>> > that.
>>
>> That's in part because it rather depends on what you're trying to do.
>> For example, you might be:
>>
>> * trying to take existing code written for Node and run it in the browser
>> * trying to take existing code written for the browser and run it in Node
>> * trying to write a new codebase that will run in both places
>>
>> As has been mentioned, browserify is probably the best solution for
>> the first of these. I think it's safe to say that it garners the most
>> attention, in part because it's good at what it does.
>>
>> For the last case, you might want to take a look at YUI, which
>> provides the abstractions to let you write your code once and run it
>> in both places. Yahoo! has built Mojito on top of YUI and is using
>> that to create multi-device apps that transparently share code between
>> client and server. (BTW, you'll likely find that YUI is much more
>> lightweight and modular than you think.)
>>
>> --
>> Martin Cooper
>>
>>
>> > I have come across many ideas:
>> >
>> > express-expose: this is a nice replacement for parsing JSON objects
>> > rendered
>> > by the the server.
>> >
https://github.com/visionmedia/express-expose
>> >
>> > This article exposes a hack to share backbone models on the Node server,
>> > and
>> > they are trying to neat their hack with their Capsule and Thoonk
>> > frameworks:
>> >
>> >
http://andyet.net/blog/2011/feb/15/re-using-backbonejs-models-on-the-server-with-node/
>> >
>> > Syncrhonizing Backbone model using
socket.io
>> >
https://github.com/scttnlsn/backbone.io
>> >
>> > DNode and RPC as a method to use server methods on the client and vice
>> > versa
>> >
https://github.com/substack/dnode
>> >
>> > I know I've mixed a lot of topics, I thought sharing my confusion would
>> > help
>> > to get more clarification, especially that there are a lot of production
>> > projects based on Node, andI think that the community certainly have
>> > reached
>> > a good collection of concepts and tools for sharing code between the
>> > server
>> > and client. I would be very grateful for sharing your thoughts about
>> > that.
>> >
>> > Best regards,
>> >
>> > Amjad
>> >
>> >
>> > --
>> > 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
>>
>> --
>> 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
>
>
> --
> 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
--
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