Questions tagged as 'nodejs'

1
answer

Create backup for python and node environment

I am preparing to format my laptop but I have many python packages installed and accommodated in different virtual environments, the same thing happens with node.js and many modules that I have. Is there a way to make a backup for all my librari...
asked by 14.06.2016 / 23:03
1
answer

Send a message to n subscribed users when a date / time approaches nodejs

I want to be able to send a message to a user via email or sms, given a date and time for example 10/24/2016 14:00:00 send a message to you one hour before, I am using nodemailer to send via email, and twilio to send via sms, but the question is...
asked by 14.10.2016 / 21:58
1
answer

Creating api in node I get error: bodyparse is not defined

I am creating an API in node but I get the following error: app.use(bodyParser.urlencoded({ extended: false })); ^ ReferenceError: bodyParser is not defined at Object.<anonymous> (/home/keily/code/node-api-rest-example/app....
asked by 22.03.2016 / 17:16
1
answer

The port is occupied when pressing CTRL + C from the linux terminal with Nodejs applications

I have the following problem, since I have to program in nodejs when executing the nodejs application from the console (node app.js) there is a busy port (example port: 3000) .. when closing the app (< kbd> Ctrl + C ) ... the port is still bus...
asked by 02.03.2016 / 16:56
1
answer

Simulate several clients in nodejs

How can I simulate several clients using nodejs ? Is there a module?     
asked by 01.07.2016 / 19:11
3
answers

Does not load the component in react. error in http: // localhost: 3000 / shows the message on the Can not GET page / when trying to load the React component

file: server.js const express = require('express'); const express = require('express'); const app = express(); const app = express(); app.use(express.static(__dirname + '/public')); app.use(express.static(__dirname + '/public...
asked by 09.08.2017 / 01:47
2
answers

automatic consultations to mongodb once a month

I have to perform an operation for each document of a collection on a specific day of the month and save the results in other documents from different collections, my question would be which is the best way to do this, it would be with a bash sc...
asked by 27.12.2016 / 17:28
3
answers

fs.readFile does not give me a correct format for pdf

I am trying to load a pdf in a new browser tab by passing it by res.send so that the file remains private and not accessible unless the user has the necessary permissions. The problem is that when the file pdf is opened in t...
asked by 12.10.2016 / 01:45
1
answer

Query socket io in nodejs

I try to send data from a client to an endpoint in nodejs and with socket io graph this in real time on a graph of temperatura vs tiempo . Part of the client: else{ sensors=["Rimac","Cercado"]; for (sensor in sensors){ var dat...
asked by 06.07.2016 / 11:22
1
answer

How to call a java event from Node JS?

I have a java application that connects to a biometric. The idea is to execute its functions from an app in node through Java. Is it possible to call this Java function from node? For example: public static void llamando() { System.out.pri...
asked by 04.09.2017 / 16:27