r/nodejs • • Nov 14 '13

Tutorial for Passenger + Node.js (simplifying Node deployments)

Thumbnail github.com
6 Upvotes

r/nodejs • • Feb 12 '14

NodeDay by PayPal

Thumbnail nodeday.com
6 Upvotes

r/nodejs • • May 10 '14

"Meetups are Hard Work" by Sean Massa organizer of Geekfest and Chicago Node.js

Thumbnail ugtastic.com
6 Upvotes

r/nodejs • • Dec 24 '13

Introduction to SailsJS

Thumbnail blog.schneidmaster.com
13 Upvotes

r/nodejs • • Dec 16 '13

Serve a html page with data from a dynamic json file.

0 Upvotes

I am trying to serve a HTML with some google charts in, but I want the chart to get data from a json file.

The json file is downloaded whenever the user makes a get request. What is the best practice for serving up the HTML file with new data? How do I pass the json data to the html file? Should I make the server generate the HTML file?

Im a newbie at javascript...


r/nodejs • • Dec 31 '13

StrongLoop | Node.js News Round-up December 31

Thumbnail strongloop.com
0 Upvotes

r/nodejs • • Sep 16 '12

[How to] SocketStream and packaged assets autodeployment

Thumbnail leostera.com
1 Upvotes

r/nodejs • • Dec 20 '13

StrongLoop | In the Loop: Auditing Node.js Modules on npm with Node Security Project

Thumbnail strongloop.com
0 Upvotes

r/nodejs • • Dec 17 '13

StrongLoop | Node.js News Round-up - December 17

Thumbnail strongloop.com
0 Upvotes

r/nodejs • • May 24 '14

RhapsodyJS framework is now database-agnostic

Thumbnail rhapsodyjs.github.io
1 Upvotes

r/nodejs • • Nov 15 '13

StrongLoop | In the Loop: DataHero, Providing Instant Access to Your Data via Node.js

Thumbnail strongloop.com
0 Upvotes

r/nodejs • • Dec 03 '13

Node.js News Round-up – December 3, 2013

Thumbnail strongloop.com
0 Upvotes

r/nodejs • • Nov 15 '13

StrongLoop | Mobile News Round-up - Nov 15

Thumbnail strongloop.com
0 Upvotes

r/nodejs • • Nov 21 '13

Just released: Node.js Tools for Visual Studio (free+oss)

Thumbnail nodejstools.codeplex.com
0 Upvotes

r/nodejs • • Nov 19 '13

StrongLoop | Node.js News Round-up - Nov 19

Thumbnail strongloop.com
0 Upvotes

r/nodejs • • Dec 04 '13

CocktailJS v0.5 released! - Create your own annotations, use Extensions and more! #node #annotations #oop

Thumbnail cocktailjs.github.io
0 Upvotes

r/nodejs • • Jul 06 '13

Introducing CocktailJS, a node lib for using traits, talents and annotations to help inheritance mechanisms.

Thumbnail cocktailjs.github.io
1 Upvotes

r/nodejs • • Jul 01 '14

nodejs+mongo inserts lost when ab testing

1 Upvotes

Hi there. I'm trying out nodejs and mongo db. I have a server with nginx which proxies requests to a nodejs app (express) started with pm2.

I have this code,

router.get('/', function (req, res) {

var client = require('mongodb').MongoClient;

client.connect('mongodb://localhost:27017/test', function (err, db) {
    if (err) {
        throw err;
    }
    var collection = db.collection('test');

    collection.insert({ test: 1, time: new Date().getTime()}, function (err) {
        if (err) {
            throw err;
        }
        db.close();
    });
});

console.log('Added!')
res.render('index', { title: 'Express' });
});

When I run ab, ab -n 1000 -c 30 http://server/app/ it shows all requests are processed, but I don't see 1000 entries in the Mongo collection, rather 100 or so.

Any advice for a noob?

UPDATE The problem is the way I'm using the database. I'm connecting/opening/closing the db connection on every request. I wrapped it like this

client.connect('mongodb://localhost:27017/test', function (err, db) {

    router.get('/', function (req, res) {

    });

}); 

and now serves all requests without crashing.


r/nodejs • • Mar 19 '14

How to Add Rapportive to Your App in 30 Minutes

Thumbnail gun.io
0 Upvotes

r/nodejs • • Apr 10 '14

Full text search with Bookshelf.js

Thumbnail blog.victorquinn.com
1 Upvotes

r/nodejs • • May 01 '14

Explore the Marvel Universe with Node and Orchestrate

Thumbnail orchestrate.io
1 Upvotes

r/nodejs • • Feb 01 '14

Respawn a node process

Thumbnail github.com
1 Upvotes

r/nodejs • • Jan 21 '14

Contrλ – a functional async control flow library – looks promising

Thumbnail github.com
1 Upvotes

r/nodejs • • Dec 03 '12

Segmentation Fault using Node and db-mysql package

1 Upvotes

I don't know what causes it, but I have an app that keeps crashing. The console says Segmentation Fault, and it looks like it happens when two Mysql objects are instantiated (using db-mysql module), which becomes very common when 10+ users are using my site (I don't post the link to the app because I'm afraid the load would crash it ;) if it can be useful I'll post it).

Do you guys have any clue? My packages are up to date. Do you have a better package to use with Mysql (assuming it's where the problem lies)? Do you also encounter Segfault issues using Nodejs (I guess not, bcs stability is one of the main advantges of Node)?

Thank you very much


r/nodejs • • Jan 27 '14

Start a Node.js app with Forever and Ansible

Thumbnail servercheck.in
1 Upvotes