Questions tagged as 'nodejs'

1
answer

Problem with JS file on NodeJS server

I have a NodeJS server running on localhost, specifically that of the NPM package called http-server, the problem is that I'm running a js script, and I'm testing and recharging, the problem is that I have to turn the server off and on to show m...
asked by 17.08.2018 / 22:23
1
answer

Perform a unit test in NodeJs. With mocha and chai;

I am performing a unit test on a function, and what I want is to simulate the communication with the DTA (that does not communicate with the database); For example: This is the function to which I want to perform the test ... public add(a, b):...
asked by 17.08.2018 / 16:51
1
answer

Update npm in fedora

How can I update nmp in fedora 28. I get this error: Thanks for the help     
asked by 15.08.2018 / 16:31
0
answers

Does anyone know why I get an error?

I do not know why I get this error could you help me? please this error appears to me    Use object destructuring. (prefer-destructuring) in context =   response.context; thanks in advance. const textInput = document.getElementById('tex...
asked by 12.08.2018 / 00:37
0
answers

sha256 hash with NodeJs and Symfony2.8

I'm trying to migrate my backend from Symfony 2.8 to NodeJs(ExpressJs) and right now I'm trying to use the same login and for that I need to compare the password encriptadas . To get the password (encrypted) and be able...
asked by 11.08.2018 / 15:18
0
answers

The route in the express estatic does not work properly in hosting

My page does not respect the express estatic and marks 404 error in the objects (images, css, js), it only happens in the hosting because locally works correctly app.use(express.static(path.join(__dirname, '../app/views/public')));     
asked by 11.08.2018 / 00:36
0
answers

JWT result: "invalid algorithm"

I'm securizing an application with "jsonwebtoken". The case is, after having managed to return the token correctly, I am about to verify. 'use strict' const fs = require('fs'), jwt = require('jsonwebtoken'), moment = require('moment')...
asked by 31.07.2018 / 22:41
0
answers

Proxy problem created with nodejs

I am creating a web proxy with nodejs and I have a problem. This is the index of the view: <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>Hola</title> </head&...
asked by 25.08.2018 / 22:37
3
answers

calculate when it starts and when the week ends

How do I generate a function js to do the calculation of when it starts and when the week ends from a day that the user selected. (Taking into account that the only one from Monday to Friday) Example of how it is intended to be, should...
asked by 28.07.2018 / 00:56
0
answers

Problems connecting Node.js with Oracle database

How about? colleagues, I ask for your support to be able to connect JavaScript or Node.js to an Oracle database, I have read several docs for example ( link ) which has helped a lot but not enough, I am currently in the following problem....
asked by 25.07.2018 / 08:07