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

learn more… | top users | synonyms (1)

0
votes
0answers
2 views

Cannot get complete signed in user AAD details through the azure graph api

i used https://github.com/Wintellect/node-azure-oauth sample code to authenticate with OAuth2 Against Azure Active Directory and it is working fine O365 user(any domain). then add ...
-4
votes
0answers
13 views

When to use nodejs, php, rails or Django? [on hold]

I am about to start developing a relatively simple bidding web app with a heavy usage of server side. I have experience with Django but I got a strange taste as Django makes you do the thing in a ...
0
votes
1answer
5 views

Express router.use not working

I used express-generator to generate the basic structure of an express app. I have this in routes/my.js: router.use('/update', function(req, res, next) { req.headers['content-type'] = ...
0
votes
0answers
2 views

nodejs - socket.io - unable to change a global variable with socket.on

I have the following code: var filter_country = 'all-countries'; io.sockets.on('connection', function(socket) { rl.on('line', function(line) { console.log(filter_country); }) socket.on('filter', ...
0
votes
0answers
4 views

Twitter Stream & Node js server Error

I am trying to connect connect to twitter streaming api and I am getting the error events.js:87 throw er; // Unhandled 'error' event ^ Error: Bad Twitter streaming request: 401 ...
0
votes
0answers
8 views

Sequelize create include

I have the following models and assosiations: var AcademyModule = sequelize.define('academy_module', { academy_id: { type: DataTypes.INTEGER, primaryKey: ...
0
votes
0answers
2 views

DynamoDB Downscales within the last 24 hours?

Is it anyhow possible to get the count, how often DynamoDB throughput (write units/read units) was downscaled within the last 24 hours? My idea is to downscale as soon as an hugo drop e.g. 50% in the ...
0
votes
0answers
3 views

How to configure interval and max_attempts in aws S3 javascript SDK

I am using aws S3 nodejs sdk and I need to check if a file exist in my bucket as quickly as possible. The default params of the AWS.S3.waitFor() method check to object existence every 5 seconds with ...
0
votes
0answers
5 views

passport oath2 authentication with token

In my node.js app I use passport to authenticate user via google account. When I receive the callback from google I also get an accessToken and a refreshToken. passport.use(new GoogleStrategy({ ...
0
votes
0answers
7 views

how to use geoNear in nodejs?

I want to use geospatial geoNear, database in mongodb, Mongo Query: db.runCommand( { geoNear: "tmp", near: { type: "Point", coordinates: [ 77.00000, 12.00000] }, spherical: true, ...
0
votes
0answers
6 views

What to use: Comet or Web-sockets?

Which technology better in my case: I'm tryin' to developing web-resource with 1) notifications (new incoming call, answer incoming call, users messages, service messages etc.) 2) chat between two ...
0
votes
0answers
3 views

CloudAQMP with NodeJs and Celery

I'm able to use cloudamqp documentation to connect using Nodejs client as shown in sample code on cloudaqmp's website, but I can't seem to do so using celery in my nodejs application on Heroku. Here ...
0
votes
0answers
6 views

Sharding database through nodejs

I am very much new to the concept of node js. My officers assigned me task to find sharding of database through nodejs. I google and found an npm package ,called cluster-pool. Being new I don't know ...
0
votes
0answers
10 views

error while including monk file in express.js

while including monk in file app.js i get an error. var monk = require('monk'); npm ERR! [email protected] start: node ./bin/www npm ERR! Exit status 8 npm ERR! npm ERR! Failed at the ...
1
vote
0answers
13 views

Object.keys called on non-object with Node.js and MongoDB Stream

I want to retrieve a large JSON chunks from MongoDB using Node.js Here's json in MongoDB: { "nid": "nanodev-0000000015", "unixtime": NumberInt(1416561973), "cpuload": "0.71", "cpucore": ...
0
votes
0answers
16 views

How to add field to mongoose query result?

exports.getCityCascade = function (req, res) { var result = {}; Province.find().exec(function (err, provinces) { result.provinces = provinces; var provinceCount = 0; async.whilst( ...
-1
votes
0answers
7 views

How to use node-gm change Profile-iptc infomation

How to use node model gm change Profile-iptc infomation. thanks.
0
votes
0answers
7 views

How to organize production web resources serve?

I use nodejs as a server technology on the SPA web application with a custom router engine and require.js as a dependency manager. I'm looking for a way to organize web resources serving with ...
0
votes
0answers
8 views

Laravel, Redis, Node.js and Websockets (pubsub?)

We have an API built on Laravel, and we are hoping to add a Redis and Node layer to make it real time compatible, I have a few questions however. A user/client needs to be subscribe to a channel to ...
0
votes
1answer
37 views

Javascript difference between '/' and \/\

I'm trying to intercept in node.js all the get requests with the following: dispatcher.onGet('/', function(req,res,chain) { ... }); but this isn't working. The following is working instead: ...
0
votes
0answers
15 views

Mongoose: remove relation in complex objects

I have a complex model that looks something like this: (I'm omitting none important attributes for simplicity) var propertyModel = mongoose.Schema({ name: String }); var bodyPart = ...
0
votes
0answers
12 views

Can't run cloak server on Openshift ( require('http').createServer(); don't work)

I am trying to run cloak server on Openshift. I found out, that there is a call in socket.io which does absolutely nothing on Openshift, while on local machine, it works alright. Problem is right ...
0
votes
0answers
6 views

node-mysql-utilities limit and offset in select query

How to use this utility to "node-mysql-utilities" to query "select" and use the limit and offset? Example: connection.select('Language', '*', null, { id: 'desc' }, {limit:30}, {offset:50}, ...
0
votes
0answers
5 views

How to check DynamoDB Status while chaning Throughput of WriteUnits and wait for it to complete?

How can I wait for the DynamoDB active state? I'd like to only upscale DynamoDB while no other process is scaling/updating the table up. Thus I was wondering how I can see whether any other process ...
0
votes
0answers
9 views

OAuth2 and SocketIo

I have developped a little RESTFul API and want to add some realtime feature. The fact is that I use OAuth2 basic auth with node-oauth2-server and I dont know how to manage socket.io authentication. ...
0
votes
0answers
7 views

Node.js See Process Logs after server client console restart

I'm using Amazon EC2 to host my Node.js server. I connect through ssh from my desktop, and once I run my server via ssh, I can turn my console off and everything will still work, obviously, since the ...
-1
votes
1answer
23 views

What is the difference between npm install and npm install -g [on hold]

What is the main difference between npm install and npm install -g ?? are the modules installed on different directory or is that something to do with dependencies.??
0
votes
0answers
10 views

How to insert form inputs as a metadata into FS.Collection while uploading an image?

I insert images into FS.Collection, based on this example by Ethaan - https://github.com/Ethaan/simple-uploadFS/. But I need to upload 2 input values and 2 select values connected with image. I ...
0
votes
0answers
7 views

Temporary files on Travis

I have a Javascript project which uses Grunt for build process, QUnit for tests, Blanket for code coverage and a custom Grunt task to convert coverage results into LCOV files, sended to Coveralls. ...
0
votes
1answer
17 views

cookie not set on cross domain - angularjs and nodejs/express

cookie is not set on cross domain request. my server is running in localhost:8000 and client side running in localhost:9000. cors settings on the server nodejs/express is app.use(function(req, res, ...
-1
votes
0answers
12 views

Store time series data into mongo, the data is rapidly changing

The live time series data is generated in a light sensor, and presented as a rapidly changing (refreshing about every 20 milliseconds) variable in the public javascript file, I have no idea how to ...
0
votes
0answers
8 views

Store session data in cookie to share between Java based and Nodejs based application

I am working on existing application which is java based and we are migrating one page to NodeJS based application. We are thinking to take following approach. In the java server, at the end of ...
0
votes
0answers
15 views

How to store data in machine cache in Node.js?

I am getting the contacts using Google API when user log in with Gmail and want to store in memory cache not on my server cache. I used node-cache module for storing data and it is working fine, but ...
0
votes
0answers
11 views

send email using gmail api Error: This API does not support parsing form-encoded input

I'm trying to send email using gmail-api, I'm reading data from user and converted it to base64url string I'm getting the raw value and when I try to send the mail using post request var ss=new ...
1
vote
0answers
16 views

How does expressjs response shell command execution

I want to setup a site quickly, so I try express now. But I am pretty new to it. ;-( I need to invoke some executables in server part, and send to result back to browser. Following node.js shell ...
0
votes
1answer
25 views

Mongoose, mongodb, bad aggregate grouping

I m actually trying to get some information concerning my app. I have to get some informatiogrouping by day / month / year. I have the good result attributes, but information is displayed even if ...
0
votes
1answer
18 views

Issue when parsing JSON with NodeJS

I'm reading a JSON file and parsing it with NodeJS, the JSON file looks like this: { "id": 5, "x": 9.996, "y": 0.135, "v": { "x1": 0.653, "y1": -0.064 }, "z": ...
0
votes
1answer
3 views

Dependency Chain: category -> shop => category in model sequelizejs while defining foreign key

List of Error: \Possibly unhandled Error: Cyclic dependency found. 'category' is dependent of itself. Dependency Chain: category -> shop => category at visit ...
0
votes
0answers
10 views

Ionic - Unable to emulate or run android build on Windows 7 machine

I created a test project based on the tabs project template succesfully. I then added the android platform succesfully But when I try either running the project or emulating it, it seems to be always ...
0
votes
0answers
17 views

Encrypting DB passwords in node.js

In my application I use a config file to store the database connection details. How can I use an encrypted password and later decrypt it while making a connection ? config.mongodb = { ...
0
votes
0answers
9 views

How do I use a typed array with offset in node?

I am writing a mat file parser using jBinary, which is built on top of jDataView. I have a working parser with lots of tests, but it runs very slowly for moderately sized data sets of around 10 MB. ...
1
vote
1answer
17 views

How to prevent sails.js from passing the req object on all views?

I noticed that sails.js passes the req object to ALL views, and doing that, to my understanding, is not the default behavior on Express (which sails is based on). I can't find anything on the ...
0
votes
0answers
8 views

MongoDB/Mongoose.js - Aggregation with geoNear

I'm using the node-geoip module and performing an aggregation query. The schema against which I am performing the query looks like this: var mongoose = require('mongoose'); require('./location.js'); ...
0
votes
1answer
13 views

Updating a many to many join table using sequelize for nodejs

I have a Products table and a Categories table. A single Product can have many Categories and a single Category can have many Products, therefore I have a ProductsCategories table to handle the ...
-1
votes
0answers
7 views

installing node.js on pc with xampp

I would like to try out node.js. I am currently on a xampp setup on a windows machine I would like to know if there would be an issue if I just install it on the fly?
-2
votes
0answers
16 views

Developing Huge Game App using Ionic Framework, Nodejs, MongoDB and Createjs (Canvas) [on hold]

Do we have someone in here that already developed a game app using Ionic Framework, Nodejs, MongoDB and Createjs (Canvas)? Hi guys I'm developing a browser base Game now, The game is Poker I build ...
0
votes
1answer
9 views

Node.js HTTPS jquery not working

When my NodeJS server was running with HTTP, any client-side jQuery script from google's API worked well. But I changed all requests to HTTPS with a self-signed certificate, and after that my static ...
0
votes
3answers
55 views

How to write a non-blocking callback in Javascript?

Here is some code I am trying : startTask(); function startTask(){ console.log('startTask enter'); startLongTask(1, function(){ console.log('long task complete'); }); ...
0
votes
0answers
4 views

Using connect-flash with different error types?

I'm using connect-flash to display error messages back to the user on unsuccessful form submit. req.assert('email','Invalid email address').isEmail(); req.assert('type','Invalid ...
0
votes
1answer
19 views

Storing data in req vs res

I have a middleware (in sails.js, an express based framework) that looks something up in a database and then stores what it found in an object, so I can use it in layouts/controllers. Currently, I'm ...