Tagged Questions
Node.js is an event-based, asynchronous I/O framework that uses Google's V8 JavaScript engine. Node.js is commonly used for heavy client-server JavaScript applications.
0
votes
0answers
4 views
PassportJS - login credentials in GET request?
I'm working on a RESTful web application. I would like to have user registration occur via a POST request (username and password in the request body), and user login via a GET request (username and ...
1
vote
1answer
26 views
JSON.parse appending empty array to end of string argument
I'm writing a simple Node.JS app that works with the GitHub API to pull user statistics. I'm sending a GET request to /repos/:user/:repo_name/stats/contributors which should return to me a JSON ...
0
votes
1answer
15 views
findOne NodeJS MongoDB driver
I have JSON data like you see below in a collection called 'English', for which I'm setting up a REST api with a nodejs app using the MongoDB driver. If I do the following, I get all the JSON data ...
0
votes
1answer
5 views
Jade template rendering error div despite undefined errors object
When hitting my sign-up page my jade template (with Twitter Bootstrap) is producing an empty error div (i.e. a red, opaque box with a closing link and no errors), despite the errors object returning ...
0
votes
0answers
11 views
Connecting Ruby(Rails) to Nodejs through a pipe
I have a rails app that needs to make use of a Javascript library on the server. Up until now I have been running system commands from rails to nodejs whenever this is necessary. However, I have a ...
0
votes
1answer
17 views
Install a server for a node.js web service application
I've built an application that run with node.js, which permit to retrieve some data through a REST API.
I want to put it online on a personal computer (Windows), but I have no idea how to install a ...
0
votes
0answers
8 views
Mongoose single nested model
I want to abstract away a model from my Mongoose schema:
AddressSchema = mongoose.Schema(
_type: String
first_name: String
last_name: String
address_line1: String
address_line2: String
...
0
votes
0answers
6 views
AS3 library for Socket.io
I'm using node.js+socket.io in my projects, and one of the issues that bothers me the most is absence of normal AS3 library than can handle communications between as3 and node.js using socket.io.
In ...
1
vote
0answers
15 views
Running thousands of NodeJS apps
I would like to start writing lots of tiny "utility" NodeJS-based apps -- things like stream filters, generators, and the like, that might be 30-40LOC each. Each one would consume nearly zero CPU, ...
0
votes
0answers
12 views
Updating documents in multiple collections with MongoDB in Node.JS?
Background
I am working on a Node.JS/Express web app for a volunteer program with a group for our senior design project. The SGA at has a program called Big Event in which student volunteers go out ...
0
votes
2answers
37 views
Node JS return undefined?
I am using a basic node.js introduction script, and i am passing in a argument in the command line.
i want this argument to be passed back to the client after it has run. I can pass back anything that ...
0
votes
2answers
27 views
How to set variable before callback is called?
I'm trying to design a webpage. I have a function that I call to get all info needed for an individual's home page. A snippet of the code is:
exports.getHomePageData = function(userId, cb) {
var ...
0
votes
1answer
24 views
Uploading an image to a form
I am trying to upload an image to an HTTP form using NodeJS. Meaning I am not creating a form, but rather accessing an existing one and uploading an image using POST. What is the best way to do this?
...
0
votes
0answers
19 views
launch socket.io event from outside the socket
I m receiving POST queries on the http server side like this :
var express = require('express.io')
, stylus = require('stylus')
, nib = require('nib')
, socket = require('./routes/socket.js')
...
1
vote
1answer
20 views
removing listener in addListener
I'm programming a node.js Facebook-like chat plugin for my website and I've been having issues with the server crashing after a day. I think the issue is that my session.event.addListener is clogging ...