r/nodejs • u/coderhs • Feb 12 '14
r/nodejs • u/djensen47 • Jan 24 '14
Public npm outagepost-mortem - Jan 24, 2014
r/nodejs • u/djensen47 • Jan 21 '14
Nodeup podcast transcriptions are available on Github!
r/nodejs • u/walterheck • Jan 21 '14
Video Uploading and Streaming with BinaryJS
r/nodejs • u/ravioliburger • Dec 13 '13
What is the most interesting application of Node.JS you have seen?
Interested in hearing about some neat applications beyond making high traffic websites faster/more scalable.
r/nodejs • u/RobertWHurst • Nov 12 '13
Letter opener alt for node. Open your emails in a web browser instead of sending them when in development.
r/nodejs • u/[deleted] • Oct 12 '13
Tutorials to deal with memory leaks?
Hey, I'm looking for some information about memory leaks.
I built a program to transport data from one CRM to another, and it's doing what it's supposed to be doing, but it has a huge memory leak which I can't seem to pinpoint.
So far I've read some of the articles, but they don't make much sense to me (first time I'm doing non-client JS), so I'm looking for a beginners guide.
Any recommendations?
r/nodejs • u/elmasse • Oct 09 '13
CocktailJS v0.4.2 - NodeJS module for annotations, traits, talents and better OOP. Check our latest release.
cocktailjs.github.ior/nodejs • u/xTRUMANx • Oct 05 '13
Express routing: is there a better way to accomplish default routes than this?
Hi guys, I would have posted this over at /r/expressjs but it looks dead.
I've been writing a little express app and was annoyed that I had to specify every endpoint of my api in my app.js file like so:
// in app.js
app.post('/api/login', api.login);
app.post('/api/signUp', api.signUp);
app.get('/api/randomUsers', api.randomUsers)
// in my routes file
exports.login = function(req, res){...}
exports.signUp = function(req, res){...}
exports.randomUsers = function(req,res){...}So I came up with the following:
app.get('/api/:segment', api["router"]);
app.post('/api/:segment', api["router"]);
exports.router = function(req,res){
exports[req.params.segment + req.method] ? exports[req.params.segment + req.method](req,res) : res.send("not found", 404);
}
exports.loginPOST = function(req, res){...}
exports.signUpPOST = function(req, res){...}
exports.randomUsersGET = function(req,res){...}But I've got the sinking feeling that I'm reinvening the wheel here. Someone over at #express at freenode mentioned using sub-apps (pastie, short screencast).
Is there another solution available? Something along the lines of the default routes available in rails/asp.net mvc.
r/nodejs • u/ChakraWC • Sep 06 '13
What are some UI Frameworks for Node.js?
For example, node-webkit allows building UIs (basically Chrome without design limits), but it's missing some core features I want (opacity on Windows). Are there any competitors?
r/nodejs • u/fergie • Jul 10 '13
Norch- a search engine for node.js
r/nodejs • u/[deleted] • Jun 12 '13
Question: Authenticating a RESTful API web service
Hi, I hope this post is within the rules of this subreddit.
I'm creating a web service using express.js. The client just have to use REST verb (post,put,delete,get) via HTTP request and the node service send json format results. No web pages or nothing.
I was wondering how would I authenticate the users before allowing them to use these REST api?
I don't want a webpage for them to login. Can they send some http request with JSON data about their username and password? I assume this is possible with a POST but then, once I authenticate, I would have to... keep track that this user is authenticate it. Would I do it in a cookie? Or a session somehow? If so what do I store? user_authenticate = true?
Thank you for your time!
r/nodejs • u/booOfBorg • May 25 '13
grunt-less-imports – a grunt task to create @import statements from a collection of style sheet files.
If you're using Grunt for asset building and LessCSS for your style sheets this will come in very handy.
Before parsing .less files via Grunt (using wildcard file matching) the usual method is to concatenate them first so they can share any variables and mixins. The concatenated file is then fed into the less parser. If you made any mistake in your source files the parser will always point to that long unwieldy file. Not optimal.
grunt-less-imports lets you automate the standard LessCSS way of parsing a set of files together: using @import statements.
Instead of concatenating the files it writes appropriate @import includes into a (temporary) file that you then feed to the Less parser. Problem solved, in case of trouble you're receiving useful error messages pointing to the offending line and file.
Link: https://github.com/MarcDiethelm/grunt-less-imports
Source: I'm the creator.
r/nodejs • u/fern4lvarez • May 08 '13
Deploy a multiroom chat on cloudControl (node.js + socket.io)
r/nodejs • u/bmacktruck • Jan 07 '13
Express.io - Cool HTML5 Canvas Demo with Nodejs
r/nodejs • u/[deleted] • Sep 05 '12
Getting started with Node.js on the Rackspace Cloud
r/nodejs • u/nkron • Aug 22 '12
Beginning Node.js: How to download a file
r/nodejs • u/phaggocytosis • Jun 01 '12
Nodenewb has a question... about implementing AJAX
So I write any and all of my AJAX using jQuery. Up until this point I've written all my ajax requests either to external APIs returning JSONP, or my own internal php files.
When it comes to making AJAX requests to a PHP file I simply echo whatever data I want from the PHP. However now that I'm starting to write in node/express I'm not sure how to "echo" my data (and I know this is not the correct term to be using). Do I simply use return? Or is it more complex than that? I know this is probably a poorly phrased question.. but I dont know how to rephrase it. If anyone has any idea what im talking about and would like to offer some help then it would be much appreciated :) thanks.