Questions tagged as 'node.js'

1
answer

Node.js and PHP on the same server

I have a dedicated CentOS 6.5 server with Plesk Panel 12 installed, with several sites in php. I would like to develop a chat with node.js and integrate it with some sites made in php. Only this chat needs to retrieve some information from the u...
asked by 27.11.2014 / 04:32
1
answer

Req and Res in nodejs, problem in understanding arguments

I saw myself with the problem of understanding in depth what the res and req means in node js, but you have to understand the problem, I understand everything about what is res, and what is req and I know for which uses them, but a function for...
asked by 14.09.2018 / 05:23
1
answer

How do I inherit methods from one prototype to another using the 'util' module from Node.js?

I was watching the video of a guy explaining Node.js events and in the end he makes a small module using util.inherit to inherit from one prototype builder to another. Although I know the syntax of call and have gotten a sense of t...
asked by 13.01.2015 / 04:05
2
answers

Are there BI / OLAP tools for the MEAN.JS platform?

Can anyone point me to a BI / OLAP framework or at least one Chart Engine, preferably open-source, to properly integrate the MEAN.JS or MEAN.IO with SPA SPA - Single Page Application I know keen.io . It is free in low transactional volu...
asked by 19.10.2014 / 22:16
1
answer

Error uploading a NodeJS application in Heroku

While running the eating: git push heroku master LOG: -----> Node.js app detected parse error: Unfinished string ! Unable to parse package.json -----> Build failed We're sorry this build is failing! You can troubleshoot c...
asked by 04.05.2017 / 18:28
1
answer

Generate random random string in NodeJS

Because, using the Javascript language on the NodeJS platform, generating a string, preferably with configurable size, random enough to be used in cryptographic routines can not be insufficiently random? If you propose more than one soluti...
asked by 15.02.2014 / 20:28
1
answer

Node.js Error v6.11.5 in Windows 10

I installed Node.js to study Angular 2, I downloaded it from the node site, but after installing it, when I type npm start in the cmd of my PC, I get the error below, I am giving the command in the file folder package.json C:\P...
asked by 29.10.2017 / 01:31
1
answer

Nodejs - How to use external variables in asynchronous functions

I'm starting in node and I still find the concept of asynchronous functions complicated. I'm using js to render templates to email in my application. The prototype is: "use strict"; const nodemailer = require('nodemai...
asked by 04.12.2016 / 23:55
4
answers

Where does JWT store the tokens?

I'm following the following tutorial to create an authentication system using Node.js and JWT: link Following the steps in the tutorial, I can verify that the user is correct and create JWT. However, the token is apparently not being stored...
asked by 29.07.2016 / 00:52
1
answer

Missing variable value (JavaScript)

I have this class, but whenever I instantiate, and access the value of fb_firstName is 'undefined'. What am I doing wrong? In the set method, setFb_firstName(firstName) , the value is correct, but at the time of returning with...
asked by 10.05.2016 / 00:09