Apologies since I know this is sort of a broad question, but I'm fairly new 
with Node and trying to wrap my head around some best practices.  I come 
from a java/scala background and while learning a new language, I typically 
like to look at existing libraries to get some knowledge and understanding. 
 

My goal - I'm trying to make a npm module that will aggregate a bunch of 
different (but functionally related) rest api's then expose them with some 
common wrapper functions.

For example - http://domain1/some_endpoint/..  , 
http://domain2/some_other_endpoint,..   etc.    Where the endpoints 
(some_endpoint and other_endpoint) do functionally similar things 

Where my module will allow something like 

var myapp = require('myapp.js');
var Domain1 = myapp.domain1;
var Domain2 = myapp.domain2;


Domain1.endpoint(args);   //or something to this effect
Domain2.endpoint(args);


My question is, what are some open source resources that are considered 
"good" that I can review for best practices on how to structure the app? 
 So far, I've looked through the request, async, and q libraries to try and 
find some inspiration but there seems to be a huge difference in coding 
styles between alot of these open source projects.


So.. I guess my question can be generalized as - what are some good open 
source projects that are considered "good" code that can be used for 
reference?  

-- 
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/0ebeba2c-08a9-4186-89f9-7ad5747491ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to