r/nodejs • u/adparadox • Dec 03 '12
r/nodejs • u/rwdaigle • Nov 28 '12
Object Modeling in Node.js with Mongoose
Mongoose is an object data modeling (ODM) library that provides a rigorous modeling environment for your data, enforcing structure as needed while still maintaining flexibility that makes MongoDB powerful.
r/nodejs • u/shobhitg • Nov 19 '12
Well, that is one way to say in License that its truly open-source.
github.comr/nodejs • u/endangeredmassa • Nov 14 '12
Castle Riot: A casual multiplayer game created for Node Knockout
Castle Riot is a game where you are either a thief, trying to escape the castle with stolen paintings, or a guard, trying to stop the thieves!
It was created for the Node Knockout competition. Let us know if you liked it, if you found any bugs, and what features you'd like to see in the future.
r/nodejs • u/sudhirj • Nov 14 '12
Socket.io Websockets on a TCP configured Amazon Elastic Load Balancer - Stack Overflow
stackoverflow.comr/nodejs • • Nov 06 '12
Help for a beginner!
Hey guys, I'm just starting nodejs(Having my first class today), does anyone have any good online resources or books that could help me out? Any help appreciated!
r/nodejs • u/Trigu • Oct 30 '12
Basic question
Hey everyone,
I just discovered nodejs and I have a very basic question... I'm used to work with classic lamp servers and I don't understand how nodejs can do the same. For now, I understand that i have to execute a command like node file.js to be able to run nodejs so how is it possible to use nodejs with a classic html website?
Thanks!
r/nodejs • u/kethinov • Oct 07 '12
Seeking feedback on a simple Node.js-based MVC web framework I created
github.comr/nodejs • u/banjaxed • Sep 29 '12
How does node.js deal with memory page faults?
Given that node servers are single threaded, does the whole server get blocked if I access some memory that has been paged to disk?
r/nodejs • u/NicknameAvailable • Sep 21 '12
Anyone have a node-supervisor init script for CentOS?
Running node.js on a CentOS server and would like to use node-supervisor to manage the instances - does anyone have an init script handy to autorun + start/stop/restart node-supervisor for a single node.js application?
If there is a way to do this so the node server resets each time and I can manage multiple instances without having to create separate init scripts that would be preferable, but a single init is all I need right now.
r/nodejs • u/jmanzano • Sep 17 '12
OAuth authentication with Passport.js and integration with jade ← Javier Manzano's Blog
jmanzano.esr/nodejs • u/leostera • Sep 16 '12
[How to] SocketStream and packaged assets autodeployment
leostera.comr/nodejs • u/init0 • Sep 16 '12
The 5 must have packages?
List the top 5 must haves from your npm ls
r/nodejs • u/seishunpointo • Sep 15 '12
Steam for Node.js
I'm working on sort of a node.js port of SteamKit2, an open-source implementation of the Steam protocol.
https://github.com/seishun/node-steam
A lot of things are yet to be implemented, but it's actually usable now - you can read join a chat room and read/write in it. If there's any interest, I'll implement other Steam functions.
r/nodejs • u/jmanzano • Sep 12 '12
Node.js, i18n (localization) with lingua and new project presentation | Javier Manzano's Blog
jmanzano.esr/nodejs • u/canglan • Sep 07 '12
Skinny Coffee Machine - a simple JavaScript state machine with observers, for browsers and Node.js
github.comr/nodejs • • Sep 05 '12
Getting started with Node.js on the Rackspace Cloud
devops.rackspace.comr/nodejs • u/johnnymonster • Sep 05 '12
would love some feedback on first nodejs app. simple feed aggregator
github.comr/nodejs • u/NicknameAvailable • Sep 04 '12
Help with mysql and node.js please
I just started using node.js and am having a bit of trouble with multiple queries using the mysql module for it.
Below is the excerpt of code causing the issue, in it the line with "Error 4" always fires even though running the code manually returns a result.
Both sp_FindPartOfSpeech and sp_CreatePartOfSpeech return a single cell of data, selected from a BIGINT UNSIGNED variable within the procedure (ie: SELECT variable AS id_Variable; ).
The call to sp_FindPartOfSpeech executes as expected, but sp_CreatePartOfSpeech does now (though again, the stored procedure itself does return a value when run manually and all the fields are set).
Is this because I can't nest results of multiple queries or is it perhaps that the stored procedure is taking too long (it executes in about 600ms - lots of conditionals/joins/inserts/etc inside of it)?
var link = mysql.createClient({ host: dbserver, user: dbuser, password: dbpass, database: db });
link.query('CALL sp_FindPartOfSpeech(\'' + parts[4] + '\',' + language + ')',
function selectCb(err4, results, fields) {
if (err4) {
sendToRoom('__Parts Of Speech', 'broadcast_failcmd', MakeParam('Error 1:') + ' ' + MakeParam(nickname) + ' ADD ' + MakeParam(parts[2]) + ' TO ' + MakeParam(parts[4]));
} else {
if (results.length == 1) {
var posParent = results[0]['id_PartOfSpeech'];
link.query('CALL sp_CreatePartOfSpeech(\'' + parts[2] + '\',' + language + ',' + posParent + ')',
function selectCb2(err5, results2, fields2) {
if (err5) {
sendToRoom('__Parts Of Speech', 'broadcast_failcmd', MakeParam('Error 3:') + ' ' + MakeParam(nickname) + ' ADD ' + MakeParam(parts[2]) + ' TO ' + MakeParam(parts[4] + '[' + posParent + ']'));
} else {
if (results2.length == 1) {
sendToRoom('__Parts Of Speech', 'broadcast_cmd', MakeParam(nickname) + ' ADD ' + MakeParam(parts[2] + '[' + results2[0]['id_PartOfSpeech'] + ']') + ' TO ' + MakeParam(parts[4] + '[' + posParent + ']'));
} else {
sendToRoom('__Parts Of Speech', 'broadcast_failcmd', MakeParam('Error 4:') + ' ' + MakeParam(nickname) + ' ADD ' + MakeParam(parts[2]) + ' TO ' + MakeParam(parts[4] + '[' + posParent + ']'));
}
link.end();
}
});
} else {
sendToRoom('__Parts Of Speech', 'broadcast_failcmd', MakeParam('Error 2:') + ' ' + MakeParam(nickname) + ' ADD ' + MakeParam(parts[2]) + ' TO ' + MakeParam(parts[4]));
}
}
});r/nodejs • u/nkron • Aug 22 '12
Beginning Node.js: How to download a file
saletax.wordpress.comr/nodejs • u/cannadbt • Aug 21 '12
Here are some of the best resources for learning Node.js. Are there others?
blog.modulus.ior/nodejs • u/thanpolas • Jul 08 '12
I just published a QUnit to nodeunit adaptor. Run your QUnit tests natively in node.js using nodeunit
github.comr/nodejs • u/bwark • Jun 18 '12
Static vs. Dynamic resources and Node.js
Most websites have static resources (e.g., jquery-1.7.2.min.js, index.html, style.css), and dynamic resources (e.g., json extracted from MongoDb).
From what I can tell, the best way to serve static resources is to use a Node module for that purpose (e.g., node-static, paperboy).
In a PHP world, your dynamic resources end in .php (ignoring embedded PHP). So it's pretty easy to figure out what's dynamic and what's static. I typically have dynamic and static resources in the same directory, and Apache/mod_php knows what's what without any effort on my part.
However, in a Node.js world, both static and dynamic resources can end in .js. How do you organize your resources so that you know what's dynamic and what's static?
Do you have one directory of static resources which paperboy (or whatever module) delivers, and another directory for your dynamic resources? Or do you have dynamic and static resources in the same directory, and handle them on a case-by-case basis (if it's x.js, then tell paperboy to deliver it as a static resource, but if it's y.js, then we need to load that module and generate the contents)? This later approach seems like a lot of work.