Questions tagged as 'nodejs'

1
answer

How to read data input from keyboard with NodeJS?

I am trying to read the data entry from keyboard in NodeJS, I would like to know how to do this in the way that java has its scanner or c ++ has something similar, I hope to give you to understand.     
asked by 04.02.2018 / 23:53
1
answer

How to get the latest registration | mongoDB | Nodejs

I am developing a small project and I have a very simple question, if I have in DB a few records, for example these: { { 'name':'nombre1', 'edad':'22' }, { 'name':'nombre2', 'edad':'23' }, { 'name':'nombre3', 'edad':'24' }, }...
asked by 14.03.2018 / 02:15
1
answer

Why do I get an error running sudo apt-get update?

Hi install Lubuntu 16.04 on my system and whenever I run sudo apt-get update , I get the following error:    W: The repository «cdrom: // Lubuntu 16.04.2 LTS Xenial Xerus - Release i386 (20170216) xenial Release» does not have a Publi...
asked by 10.07.2018 / 11:44
1
answer

MySQL REST API Error

Good morning, I have designed an API Rest in NodeJS. It works correctly, but when I left it up for more than 24 hours it gives me a connection error in MySQL DB. events.js:160 throw er; // Unhandled 'error' event ^ Error: Co...
asked by 07.11.2017 / 09:44
1
answer

Redsys with NodeJS and CryptoJS

I'm doing a project with NodeJS, and I'm developing the payment gateway. The problem is that when generating the signature, it gives error SIS0042 - > The signature sent is not correct. The firm generated it in the following way: var...
asked by 20.06.2017 / 18:28
1
answer

How to go from spawn to spawnSync?

I'm doing a bash console using node.js. I have to use spawnSync instead of spawn. How do I make an event occur when a standard output occurs, capture it and send it to the client through a socket? The code with spawn would be something like t...
asked by 23.04.2017 / 14:11
1
answer

Run at the beginning a script developed with nodejs in ubuntu server 16?

Hi, I have a backend in amazon aws. Developed with nodejs, and it is necessary to execute that script in what the system starts. How could I do that?     
asked by 27.01.2017 / 20:14
1
answer

What is the correct way to send several datasets in the response using Nodejs and mssql?

Good morning everyone, I have a web application made in Nodejs, in one of the requests I must send two sets of data, which are retrieved independently from a Microsfot SQL Server database. My query is the following Is this the correct way? fun...
asked by 02.02.2017 / 17:12
1
answer

Create new tables in SQLite

Working with NodeJS , until now, created new rows when a user was not found, and did it in the following way: const sqlite = require('sqlite'); sqlite.open('points.sqlite').then(() => { sqlite.get('SELECT * FROM users WHERE ID = ${user}'...
asked by 04.02.2017 / 01:35
1
answer

notifications on the desktop from node.js

I have a chat programmed with Node.js , PHP and MySQL , I just need to notify the user that he has new messages, but notifications of HTML5 vanish. Does anyone know if it is possible to program them as desktop notifi...
asked by 19.09.2016 / 20:34