Questions tagged as 'nodejs'

1
answer

running a cron in nodejs

I use the cron library to run the following snippet of code pepinosModelo.find() .exec() .then(pepinos => { pepinos.forEach(pepino => { let frecuencia = pepino.frecuente(); let nuevoTrans = [{ chocolate:tr...
asked by 31.01.2017 / 21:49
1
answer

Error 534 when sending an email with Nodemailer

I have a web project where sporting events are created and when creating an event I have to send an email, it is the first time I use nodemailer. I'm doing shipping tests so for that I have a link that by clicking the driver of the url...
asked by 31.01.2017 / 23:02
1
answer

I can not access process.env nodejs

I am starting to program in node, and as part of my tasks I have to program an app with token authentication. But I am stuck in the part where it generates it, because if I pass the direct text in the "key" field of the jwt-simple if it gener...
asked by 28.01.2017 / 01:02
1
answer

Using Node, Express and Multer to upload a file to MongoDB? What should I use, Multer or GRIDfs?

Hi, I'm running a final project in Heroku using MongoLab and Multer to upload photos, it seems to work fine, but after a few hours or less the photos disappear from the page, but leave the img placeholder, the symbol appears when the browser can...
asked by 20.01.2017 / 18:10
1
answer

fill variables with express middleware js

I'm trying to fill a variable with a middleware that receives information through a request json and I'm storing it in a global variable which I later use in a render with pug, but the first loads return an empty variable, How can I ensure that...
asked by 20.01.2017 / 16:34
1
answer

Error in NodeJS typings message Unable to find "-global" ("npm") in the registry

I get the following error in NodeJS : ypings ERR! message Unable to find "–global" ("npm") in the registry. typings ERR! message We could use your help adding these typings to the registry: sshttps:/./github.com/typings/registry typings ERR!...
asked by 16.02.2017 / 19:26
0
answers

Scale application nodejs in Digitalocean

I try to do the following: I have 1 form with some fields, this can upload files (photos, documents, etc.) It is simple, and this is then displayed in a list of files in another view with a short description. When I did it using a single node as...
asked by 03.01.2017 / 09:25
0
answers

Read USB device and send data to another device

I have a male to male USB cable and to experiment a bit I have the idea of using the PC to intercept the data sent by a PS4 control to the console. I want the flow to be as follows: Control---------->PC------------->PS4. That is to...
asked by 13.01.2017 / 19:00
1
answer

How to return data from different models from Nodejs and MongoDD?

Good morning, I have a web application made in Nodejs, in one of the requests I must send data of different models. My query is as follows Is this the correct way? function getProduct (req, res) { let productId = req.params.productId Produ...
asked by 03.02.2017 / 23:06
4
answers

Connect node js with firebird

Hello everyone again ... I have a FirBird 2.1 bd that is being used by a client application and I have done other things with php to publish on the web. The point is that I want to build an ASP and I want to try node.js on the server side....
asked by 01.02.2017 / 16:03