What method do you use to share your domain objects between client and server?
I'm also using MongoDB as my db, but using backbone as my MVC. On Thu, Mar 8, 2012 at 9:57 AM, Sebastian Patten <[email protected]>wrote: > I am highly interested in reducing the time taken for me to build web apps > in Node.js. I'd be interested in learning any beneficial modules or tips > that would speed up my development. > It might be some modules that encourage convention over configuration or > it might be some best practices or tips. Anything is appreciated. > > *Side note/Off topic* > I've been working on a Node.js project for 4-5 months and have done the > following to speed up my development: > > - MongoDB as a database. My domain objects have a toJson method that > serialize them to json. I then place this json straight into mongodb. This > saves time playing around with traditional schema creation, field types of > int/varchar etc... > - My domain objects are shared between client and server, I don't have > to write code for both the server and client to validate. > - I use knockout.js on the client side. I wrote some quick code to > automatically wire domain object fields to form fields so validation can > happen automatically. > > Thanks for any info. > > -- > 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 [email protected] > To unsubscribe from this group, send email to > [email protected] > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
