Questions tagged as 'nodejs'

0
answers

res.render nodejs

I have this query which I use to fill a table in jade getAnalisisDetallado: function(req, res, next) { console.log('Entro aqui'); var config = require('.././database/config'); var articulos = null; var us...
asked by 28.06.2017 / 22:30
0
answers

Decrypt password with bcryptjs in Node js

I am consulting the user using the module mssql to bring the password and compare it to the hash using bcrypt to be able to log in. This is the code to authenticate: var LocalStrategy = require('passport-local').Strategy; var sql = requ...
asked by 23.06.2017 / 14:42
0
answers

Problems with user existence in node.js / angular

Good day community, I have a question, I have an edit form, but in the backend I have a method that if the email already exists, I can not edit the form, the problem is that in angular the input appears filled with the data, and if I change ever...
asked by 22.06.2017 / 16:02
2
answers

Uncaught (in promise) ReferenceError: dom is not defined, babel

import React from "react"; import ReactDOM from "react-dom"; export class V_admin extends React.Component { constructor() { super(); } render() { return ( <option> Hola mundo! <...
asked by 31.05.2017 / 22:56
0
answers

Error in Node: events.js: 160 throw er; // Unhandled 'error' event

I have the following error with Node v6.11.0 when doing any HTTP request other than GET . The error is as follows:    events.js: 160 throw er; // Unhandled 'error' event   Error: Can not set headers after they are sent.       at Se...
asked by 09.06.2017 / 11:14
1
answer

Aot with webpack error when compiling in universal angular

I have some problems to compile with aot, I am using an angular-universal repo link the compilation of aot with npm run build: aot works perfectly with the initial repo, I have another own repository, in which I try to adapt this, when I ad...
asked by 21.05.2017 / 07:21
2
answers

How to pass the reference of a variable (io - Socket.io) to a class in JS [Node.js]?

I would like to know what is the correct way to pass the reference of the variable io to a class in Node.js I currently have the variable initialized in a file index.js : const io = require('socket.io').listen(9000) Reading some bl...
asked by 12.05.2017 / 05:30
1
answer

JavaScript object to Json node network

I am trying to pass a javascript object generated by my network node to json format. The object script that is obtained is an hour and minutes that is written on the screen, for example "13:02" I want to get a json type {"hora" : "hh:mm...
asked by 17.05.2017 / 10:10
0
answers

Problem with port node.js and CentOS 6

Friends I have days searching and I still can not find anything, I have my node.js application running on a CentOS 6 server. I'm using the socket.io and express libraries ... From the console I can see that the node server opening the port of li...
asked by 07.05.2017 / 16:42
1
answer

Delete object from an array (RethinkDB)

I work with Node.js , I'm trying to delete an object from my RethinkDB database, however, I do not know what methods to use to remove the object with the condition id = index , as I do in the following code to edit a certain object from a...
asked by 08.05.2017 / 13:18