Node.js is an event-based, asynchronous I/O framework that uses Google's V8 JavaScript engine.

learn more… | top users | synonyms (1)

0
votes
0answers
47 views

Storing all tiles on a map [on hold]

A brief overview of how my game will work: I'm making a game that will be using Node. The game will be made of tiles. Say the map has a total of 250,000 tiles. Each tile requires information to be ...
0
votes
0answers
57 views

Is my application secure enough

first of all, I don't have any code to display in my question here, because I'm still designing the application structure, so i only got design developed. I'm building a phone application that I'm ...
0
votes
0answers
46 views

How to store progress of abstract events?

I making a game in node.js. I have players and they can perform a lot of actions. Actions are all coded as functions, and they change certain variables in either User object or other objects that ...
1
vote
2answers
137 views

Developing a dynamic site with Node.js [closed]

I'm trying to get some pointers on what the best methodology to follow for a web application would be. First, some background: I've built two different APIs using Node.js where Node serves the data ...
3
votes
1answer
95 views

Utilising Promises, Closures and Recursion in Node.js

I have employed a recursive call to a closure in order to mitigate against some race conditions I am getting (That's what I think it is). I'd like to know if (and why) this is a good solution or a bad ...
1
vote
1answer
105 views

Is parsing a submitted JSON object safe?

I have a RESTful API, built in NODE.js that does what you would expect it to: consumes data and then makes it accessible. Currently, data being submitted to my server is nested form data: ...
0
votes
2answers
126 views

Understanding Front End vs Back End Javascript?

I've been noticing lately, as I've played around with javascript, HTML5, and node.js for the first times that javascript seems to be a language that is used very differently (and with different ...
0
votes
2answers
60 views

Making server logic independent of client interaction

I'm trying to make a realtime multiplayer web-game in node.js with express framework and socket.io library. But I can't seem to make my server-side logic independent of client interactions. I want ...
0
votes
0answers
67 views

Looking for changes in a MySQL database with node.js for a live dashboard

So, I work for a NOC in a small ISP. We're planning on getting a large wall mounted monitor and I'd like to make a dashboard in Node.JS - I've never used node before so it should be interesting. I'm ...
0
votes
1answer
56 views

Design questions for a Node.JS based Dashboard

I checked with meta and apparently this is the best place to ask! The company I work at have many environments, and as such, many Nagios/Icinga etc boxes in each environment. We currently have a ...
1
vote
3answers
261 views

Why should I use node.js as http server?

I know what node.js is & what it does. What I really want to know is how does it work as an http server? A server like apache gets a request, fork a process, allocate memory to process, handle ...
4
votes
2answers
109 views

Why might I switch from ASP MVC to Node/Express?

So I've been wanting to try Node and Express. Not to mention Jade and Stylus. Webstorm has in my opinion an amazing user experience and I want to use it and these technologies. Here is where I get ...
0
votes
0answers
58 views

How can resolve an URL on a specific DNS server

I'm currently facing a issue on a project. I'm resolving URL's on multiple DNS servers using a node.js server. Until here, everything is fine. But some ISP restrict the incoming requests from IPs ...
1
vote
0answers
36 views

scaffolding a multi-angular-app portal with usersystem

I'm trying to find the best way of developing a portal that a user can log in to and then be presented with a range of different apps (angular). They should share the same api-backend. I think that ...
0
votes
3answers
303 views

Finding Node.js developers [closed]

We're at the beginning stages of a new startup and will most likely be utilising Node.js as it is the most appropriate technology for the job and we like the idea of JS for both server/client. My ...
2
votes
4answers
513 views

Call the database every time, or create an object in memory, and if so, how and how often to update?

I'm creating an app in javascript/nodejs and using neo4j as database. Let's say I have an entity User in my database. It has a bunch of properties, like boxes_collected and places_visited, which keep ...
0
votes
3answers
295 views

Are (mostly) client-side JavaScript web apps slower or less efficient?

I am in the midst of writing a web application for work. Everything is from scratch. I have been a PHP programmer for about 13 years, Node.js programmer for the past 2 years, and have no shortage of ...
4
votes
1answer
151 views

nodejs chaining with async

I'm trying to chain a series of methods that are async. I have heard of promises and futures but what I'm looking for is: obj.setup() .do_something() .do_another_thing() .end() and not: ...
0
votes
1answer
78 views

Listing dependencies in the package.json for a node.js app on Heroku

I previously had an issue with my node.js app on Heroku. I added the dependency into my package.json and now it is working. But, is this the best way to do it? { "name": "application-name", ...
-1
votes
1answer
109 views

Intranet application platform decisions wamp vs node [closed]

I have a client/server java application with a firebirdsql backend. This is a pain because I have to install java and the client on every workstation, etc So it is now time to rewrite the ...
12
votes
3answers
915 views

Novice to node.js, what is the advantage gained using callbacks over events?

I am a novice JavaScripter and have no real knowledge of what goes on inside the V8 engine. Having said that, I am really enjoying my early forays into the node.js environment but I find that I am ...
1
vote
1answer
183 views

How to build an API on top of an existing Rails app with NodeJs and what architecture to use? [closed]

The explanation I was recently hired by a company that has an old RoR 2.3 application with more than 100k users, a strong SEO strategy with more than 170k indexed urls, native android and ios ...
8
votes
2answers
474 views

Dealing with the node.js callback pyramid

I've just started using node, and one thing I've quickly noticed is how quickly callbacks can build up to a silly level of indentation: doStuff(arg1, arg2, function(err, result) { ...
-1
votes
2answers
598 views

Rails/Node.js interaction

I and my co-worker are developing a web application with rails and node.js and we can't reach a consensus regarding a particular architectural decision. Our setup is basically a rails server working ...
0
votes
0answers
86 views

Problem with OAuth2 authentication process and session persistance

We're using node-oauth2-provider as an authentication library for our service. The current process for a user to log in is: POST /oauth2/access_token Which creates and saves the access_token to the ...
0
votes
0answers
127 views

What is the best procedure to setup real-time data transfers with Redis?

I have setup a RESTful API using Ruby on Rails for an iPhone application.There are some instances, however, that I would like to use Real-Time Pub/Sub data-transfers, I have drawn up 2 potentials: ...
-3
votes
1answer
351 views

Real-World node.js [closed]

I am 14 years old, and have been studying web/app/software development. I am trying to learn a backend language, and am considering node.js. I have heard awesome things about it, plus I like that fact ...
1
vote
2answers
279 views

Search algorithm

I would like to create a site where users can post articles with the following optional parts: A title Contents (text) Categories Keywords Articles will be stored in mongodb and the site will be ...
0
votes
1answer
52 views

Should I include test runner module as a dependency in my module?

My module has no dependency on its own but for running tests you need to install jasmine-node module. Should I include that module as a dependency?
1
vote
2answers
873 views

What is a reasonable way to structure relationships in MongoDB

I am also using Node - which I am not the most familiar with - if the articles/books/tutorials pertained to this also - that would help even more. I come from a mostly MySQL background - but in this ...
0
votes
1answer
310 views

Design Pattern for Server, where application is single-page RIA

So I'm using Node and ExtJS server-side/client-side respectfully. By using ExtJS, I'm moving a lot of the presentation logic client-side. Thus, something like MVC wouldn't make sense server-side since ...
1
vote
6answers
390 views

Benchmark of asynchronous code

Asynchronous programming seems to be getting quite popular these days. One of the most quoted advantages is performance gain from removing operations that block threads. But I also saw people saying ...
2
votes
2answers
4k views

What should I learn to be backend web developer? [closed]

I want to be a web developer and because I don't want to get into designing (and stuff like that) so I thought I should become a backend developer (also more suited because of my course i.e. b.tech in ...
0
votes
1answer
328 views

Unit testing in node.js and mocking modules

I'm trying to test this wrapper to request that I made: // lib/http-client.js var app = require('app'), request = require('request'); exports.search = function(searchTerm, next) { var options ...
-1
votes
1answer
499 views

Syncing chat on android device with web application

I am trying to make a chat application in android. Just a one on one chat. However I also want the chat to be synced with the web app that runs on the browser. I am confused about how to go about it. ...
3
votes
4answers
3k views

Is node.js a good fit for background processing?

I'm slowly learning node.js and have a small project I want to start. The project will have a lot of background processes (downloading data from external sites, parsing CSV files, etc.). A big "win" ...
2
votes
1answer
366 views

Data integrity in NoSQL situations

Background To start off, at work I work with a legacy system that, in its day, was quite spectacular, but now is ...interesting... to work with. It uses IBM (now Rocket) UniVerse as its backing ...
12
votes
1answer
3k views

How to implement a message queue over Redis?

Why Redis for queuing? I'm under the impression that Redis can make a good candidate for implementing a queueing system. Up until this point we've been using our MySQL database with polling, or ...
1
vote
2answers
237 views

NodeJS: Freeze dependences before testing and deployment? Check in node_modules?

Suppose you have a NodeJS application. A release could consists of multiple steps: Automated and/or manual tests Deployment (if something goes wrong) Rollback to the last stable version There are ...
0
votes
1answer
234 views

Sync csv file using nodejs

There is a remote csv file that gets updated every second or so. I need to download it(on a Windows machine) ONCE and always sync local file with the remote one. Obviously, downloading the whole ...
-2
votes
2answers
2k views

Is Node.js future-safe? [closed]

I've been getting great results with Node.js since a year+. Everything is perfect and I couldn't be happier. Yet I have a feeling that this model won't last long and will be forgotten as soon as ...
3
votes
3answers
3k views

flow control solutions in Node.js - use async.waterfall?

Looking at node.js, and avoiding nesting callbacks. I found Async.js, can someone show me how can I rewrite this code using the async.waterfall method? // db is a mongodb instance ...
1
vote
1answer
112 views

Object schemas shared between web services

My question is about how to create a definition for an object that is handled by different web services. A brief description of my current scenario and why I think it's a problem: A PHP web ...
1
vote
2answers
1k views

Is it a right thing to do, to use Node.JS as a TCP Server? [closed]

Part I - The Story: I have crafted a high performance TCP server in C# (based on SocketAsyncEventArgs) which works brilliantly (for my cause). I have more than 7000 clients, sending me a message ...
8
votes
3answers
2k views

What determines which Javascript functions are blocking vs non-blocking?

I have been doing web-based Javascript (vanilla JS, jQuery, Backbone, etc.) for a few years now, and recently I've been doing some work with Node.js. It took me a while to get the hang of ...
6
votes
1answer
2k views

How can NodeJS be “non-blocking”?

I'm learning NodeJS and just wanted to clarify something. In several introductory tutorials and books so far, very early on they've described Node's "non-blocking" architecture - or rather that it's ...
2
votes
1answer
140 views

Where to store web application custom configuration settings

I'm currently working on an internal web application for my company in node.js We want to have certain configuration settings be changeable by management. For example, we pre-print some labels ...
1
vote
0answers
290 views

Best way to set up a dev environment for Node.js using AWS s3?

We are getting ready to port part of our app over to node.js, and are looking for a way to support s3 uploads and testing in our development environment. Right now we are thinking about setting up ...
5
votes
2answers
327 views

Please explain object versioning in the nodejs module system

This question is about the persistance of variables across different modules in nodejs when they don't directly "require" each other, but do "require" a common ancestor. It is also the generalised ...
4
votes
1answer
780 views

Is Node.js correct choice for JSON parsing and IO driven

My program should perform following task: It listen on http port after getting request it does following things. Connect to gearman Parse gearman payload to JSON (Upto 100 bytes) Connect to Redis ...