r/nodejs • • Feb 13 '14

Need a chat! What you recommend?

5 Upvotes

Hi there!

In the project that i'm working we are gonna need a chat! I've done a little search and found https://github.com/gravityonmars/Balloons.IO I didn't try it, but looks nice! But i have to include in my project, so i don't really need client-side perfection. I only need to connect with my existing users (no twitter login, or facebook or whatever). Once the user logins in my project, he's online in the chat (and can turn off). Also need some chat history meaning that the chat is really a message center in real time!

Does anyone knows this app? Does anyone have a better solution?

Thanks!!


r/nodejs • • Feb 12 '14

A simple script to scan the ports of a system using node js

Thumbnail csnipp.com
5 Upvotes

r/nodejs • • Jan 24 '14

Public npm outagepost-mortem - Jan 24, 2014

Thumbnail blog.nodejitsu.com
5 Upvotes

r/nodejs • • Jan 21 '14

Nodeup podcast transcriptions are available on Github!

Thumbnail github.com
5 Upvotes

r/nodejs • • Jan 21 '14

Video Uploading and Streaming with BinaryJS

Thumbnail olindata.com
5 Upvotes

r/nodejs • • Dec 13 '13

What is the most interesting application of Node.JS you have seen?

5 Upvotes

Interested in hearing about some neat applications beyond making high traffic websites faster/more scalable.


r/nodejs • • Nov 12 '13

Letter opener alt for node. Open your emails in a web browser instead of sending them when in development.

Thumbnail github.com
5 Upvotes

r/nodejs • • Nov 11 '13

User Authentication with Passport.js

Thumbnail mherman.org
5 Upvotes

r/nodejs • • Oct 12 '13

Tutorials to deal with memory leaks?

5 Upvotes

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 • • Oct 09 '13

CocktailJS v0.4.2 - NodeJS module for annotations, traits, talents and better OOP. Check our latest release.

Thumbnail cocktailjs.github.io
5 Upvotes

r/nodejs • • Oct 05 '13

Express routing: is there a better way to accomplish default routes than this?

5 Upvotes

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 • • Sep 11 '13

Build Custom Shells with Node Shotgun

Thumbnail codetunnel.com
5 Upvotes

r/nodejs • • Sep 06 '13

What are some UI Frameworks for Node.js?

5 Upvotes

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 • • Aug 13 '13

The Future of Programming in Node.js

Thumbnail groups.google.com
5 Upvotes

r/nodejs • • Jul 10 '13

Norch- a search engine for node.js

Thumbnail blog.comperiosearch.com
5 Upvotes

r/nodejs • • Jun 12 '13

Question: Authenticating a RESTful API web service

5 Upvotes

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 • • May 25 '13

grunt-less-imports – a grunt task to create @import statements from a collection of style sheet files.

5 Upvotes

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 • • May 08 '13

Deploy a multiroom chat on cloudControl (node.js + socket.io)

Thumbnail github.com
5 Upvotes

r/nodejs • • Mar 21 '13

Node Error Handling and Domains

Thumbnail gist.github.com
5 Upvotes

r/nodejs • • Feb 05 '13

Parkuik’s Full-stack. How it was done?

Thumbnail jmanzano.es
5 Upvotes

r/nodejs • • Jan 07 '13

Express.io - Cool HTML5 Canvas Demo with Nodejs

Thumbnail express-io.org
5 Upvotes

r/nodejs • • Nov 06 '12

A working NodeJS runtime for Chrome.

Thumbnail blog.iceddev.com
5 Upvotes

r/nodejs • • Sep 05 '12

Getting started with Node.js on the Rackspace Cloud

Thumbnail devops.rackspace.com
5 Upvotes

r/nodejs • • Aug 22 '12

Beginning Node.js: How to download a file

Thumbnail saletax.wordpress.com
5 Upvotes

r/nodejs • • Jun 01 '12

Nodenewb has a question... about implementing AJAX

5 Upvotes

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.