Questions tagged as 'nodejs'

1
answer

How do I implement Passport in angular 2.0 and nodeJs?

I ask this question, because I already made some application with authentication with these technologies: MongoDb, Angular, NodeJs and Express. The fact is that I have been researching about Passport, but I can not implement it in nodeJs at all,...
asked by 22.08.2017 / 16:19
2
answers

Match two models in mongodb

I am in trouble to be able to relate two models in mongodb. I was looking for some forums the methods populate() , aggregate() . But they do not work for that matter (I think). I have model A {title : 'hola'} , model B...
asked by 10.08.2017 / 16:12
2
answers

Error starting a Javascript script in Nodejs

I have a small problem when starting a script in the javascript language whose library is nodejs. The version of the node that I have installed is v6.11.1 and my computer is a Mac whose operating system is MacOS Sierra. The script that I'm tryin...
asked by 27.07.2017 / 21:56
1
answer

Send a message to a specific user in nodejs socket.io

Greetings, how could I make a message only reach a specific user, because using io.sockets.emit makes the message reach everyone but I could not make it reach only a user that selects, if They could guide me, I'd appreciate it.     
asked by 08.09.2017 / 01:22
1
answer

Use of mustache-express4

I'm a novice with express and mustache , but I do not understand the error: index.js const join = require( 'path' ).join; const EX = require( 'express' ); const MiniModule = require( './mini' ); var app = EX( ); app.en...
asked by 15.04.2017 / 12:11
1
answer

Function Update Massive sequelize - Node

Good, I am trying to make a massive update to an MSSQL database from Node using sequelize. I still do not understand very well all this of the Promises, .then () etc. What I'm needing is a function called by POST, which receives an array of J...
asked by 30.05.2017 / 18:12
2
answers

Show all users the letter that is pressed with socket.io

What should I use in socket.io and node.js to see in real time when a user presses any key? Up to now I have been sending messages to all users through a button that triggers an event, now I would like to make the event is issued every time a ke...
asked by 14.03.2017 / 01:30
1
answer

Problems with ssl in nodejs

Hi, I'm new to nodejs, I'm doing a project with socket.io and I need to connect securely with https, but I can not make the SSL certificate work. this is what I have: var fs = require('fs'); var socket = require('socket.io' );//form...
asked by 04.03.2017 / 01:22
1
answer

Server upload in nodejs

a query, how would you do a server upload in nodejs, with a load balancer like nginx? I give you this scenario. Server A, Server B, the 2 with the same app running on a port, and balancing it with nginx, for example I have a form which wil...
asked by 15.02.2017 / 17:30
2
answers

basic problem in node js with the routes

Hello friends I'm starting to see in node js and I get this error: root@sommer0123-AO532h:/home/sommer0123/Escritorio/Nodejs/estatica# node index.js module.js:471 throw err; ^ Error: Cannot find module './modulos/server' at Funct...
asked by 17.02.2017 / 03:34