Questions tagged as 'nodejs'

2
answers

How to get MAC address from nodejs

I need to know if it is possible to obtain the MAC address of a client in NodeJS.     
asked by 17.10.2016 / 07:11
3
answers

failed to install JSPM (node JS)

I try to install JSPM with these commands link but I have an error trying to try it with the command      npm install jspm -g and I get an error Please update to minimatch 3.0.2 or higher but I check the version of the minimatch and it's 3...
asked by 15.09.2016 / 18:50
1
answer

Monitor App on Angular 6 and Nodejs API [closed]

I have designed a Web with Angular 6 and a back-end with Express and NodeJS. I have the idea of a dashboard to monitor the number of visits, how many queries to the API perform, events click on the front ... I'm lost and I'm not sure where...
asked by 13.12.2018 / 20:55
2
answers

Relationships in mongoose with personalized id

I have 2 models that I want to relate to be able to make queries in mongoose. Users Model import mongoose from 'mongoose' const Schema = mongoose.Schema let csvuaSchema = new Schema({ codigo: { type: 'String' }, georeferencia: { type:...
asked by 09.12.2018 / 23:32
2
answers

Manage function that may or may not return a promise [closed]

I have a function to which I send some parameters, and depending on those parameters makes a query in a BD or not. The issue is that I need that if the query is made in the database the application waits for the query to finish to continue w...
asked by 10.12.2018 / 23:57
1
answer

Query with Node Js and MariaDb

I'm trying to do a query with Node and MariaDb , but I'm getting this error:    GET / - - ms - -   (node: 3244) UnhandledPromiseRejectionWarning: Error: pool is closed       at Object.module.exports.createError (/Users/dmn/Desktop/apirestI...
asked by 06.12.2018 / 17:01
1
answer

Export variables from the Node JS server script

I'm trying to export a variable from my script (Server.js) to another script (articleHandler.js) using the following code line in the server script module.exports = myVariable; Which has not given me any success, since when ex...
asked by 14.10.2018 / 07:26
1
answer

Pass the ID number from one input to another on a different page

I need to do that when I enter a dni in a input and I give the boton to accept, that number, go to another input that is in another page. I have tried using localstorage but I have not been successful, I have also ent...
asked by 10.09.2018 / 18:13
1
answer

Upload backend and frontend together in heroku

I want to upload an application with backend in nodejs and frontend in react without creating 2 projects in heroku. The directories of my application are like this: My Application app - "This folder contains the frontend created with...
asked by 05.12.2018 / 03:50
1
answer

Save the property of a JSON in a Node.js variable

I have this JSON { "user": "user0001", "pass": "pass0001", "toke": "asdqwe1234", "json":[{ "Notification": [{ "Channel": 1, "Type": 1, "Means": [{ "Number": 88888888,...
asked by 24.09.2018 / 18:37