Questions tagged [nodejs-server]

405 questions
1
vote
1 answer

How to use nodejs crypto pbkdf2 salt of type bytes array in php hash_pbkdf2

I am using pbkdf2 in Nodejs and in PHP to get the KEY AND IV values whereas it is giving me the correct result if I try to use salt value as a string whereas if I have to use salt as a byte array then how it can be done in PHP side: new…
Piyush Sharma
  • 591
  • 7
  • 9
1
vote
1 answer

How to connect to a Nodejs server from outside the LAN

I’d like to connect to the raspberry Pi Node.js server I set up from outside my network. My router claims the port is open. I have tried running the server at 127.0.0.0, 0.0.0.0, and at my public IP address. I have tried using ngrok to open port…
1
vote
0 answers

How to deploy node.js app without heroku aws or other cloud computing

I have plenty of spare machines that i could use for computing, what would be the best way to deploy a nodeJS app to the web without going through a middle man (aws, azure, heroku)?
ratrimudru
  • 13
  • 2
1
vote
2 answers

Button press event in node js

what is the easiest way to communicate with a button click to node js I just want to redirect to a page when the button is pressed. How Can I do that? Here is my Html code:
1
vote
1 answer

How to pass data form node js to Angular 1.x, if some one is hitting node js api?

I am working on functionality where the user can hit 'test.com/sso' with post request. After validating the request, how can I send return value to Angular js 1.X? I am using nodeJs as a backend.
1
vote
1 answer

How can I access the return data from a worker-thread?

I have downloaded the following example that shows how to use worker-threads: https://github.com/heroku-examples/node-workers-example.git NOTE: This example requires Redis to be installed and running What I am trying to figure out is how can I…
MLissCetrus
  • 423
  • 3
  • 21
1
vote
2 answers

Node.js environment variables undefined

I'm trying to use environment variables but when I use the file and run the server, I am getting only PORT variable and all of my other variables are undefined. I'm using nodemon. .env PORT=3000 SENDGRID_API_KEY=sometext package.json "scripts": { …
Virginia
  • 13
  • 3
1
vote
1 answer

Ionic 4 android app not connecting to local node js server when running on real android device

I am trying to implement a client-server communication for my Ionic 4 android app. I have a local node js server implementation on my pc and I am using socket.io to establish the communication. The problem is that when I am running the app on…
Etheop
  • 11
  • 3
1
vote
1 answer

Merge Two codes

I have 2 files in Node js .I want to merge these 2, but I am facing problem.. This file calls function from python file const app = express() let runPy = new Promise(function(success, nosuccess) { const { spawn } = require('child_process'); …
kriti
  • 145
  • 3
  • 4
  • 13
1
vote
2 answers

How can I see all the databases of connected server in nodejs postgres/mysql

**I connected to the Postgres server using Nodejs and now I want to see all the databases under the connected server. Please help me **
Satish0302
  • 118
  • 3
  • 8
1
vote
1 answer

Is it OK to do some operation with MongoDB after the Rest API returns

I would like to have an advice. In my nodeJS/Mongo Stack, One of my Rest API takes time to return since it is doing chains of operation before returning the results. But for some of the operations , I am not concerned about the return status of the…
Raghu Vallikkat
  • 365
  • 5
  • 16
1
vote
1 answer

nodejs request module returning ECONNREFUSED on localhost

I am trying to make an api call to my localhost but I always get Error: connect ECONNREFUSED 127.0.0.1:5005 at Object.exports._errnoException (util.js:1022:11) var url = `http://127.0.0.1:5005/api/entities/myEndpoint?id=121`; var options = { …
1
vote
1 answer

why token is not create in node js csrf?

could you please tell me why token is not create in node js csrf ? I am using this package to generate token and verify token https://www.npmjs.com/package/csrf https://codesandbox.io/s/quizzical-resonance-3y8zc var http = require("http"); var…
user944513
  • 12,247
  • 49
  • 168
  • 318
1
vote
0 answers

how can i make a UI like this ... i mean these curves and the lines and stuff in react native

how can i make a good UI in react native like this? kindly help me out ...
Atinpal
  • 47
  • 5
1
vote
0 answers

React native cannot start js server properly

I have trying to run a newly created react-native project with react-native init command when using react-native run-android, it has the issue of starting the js server as the path to user profile "C:\User\Dan" is not recognized. I'm guessing this…
Nova136
  • 31
  • 1
  • 2