Questions tagged as 'node.js'

1
answer

Script in Firestore (Firebase) does not arrive in update

I'm having problems with the code below. The code arrives at the postbackRef.add and adds the information to the database, but after that it does not go into transactionsRef.where to perform the update just under transactionUpdate.update. What c...
asked by 19.03.2018 / 21:03
0
answers

Electron Closes Alone

Good morning. I'm working on a desktop platform using electron. I'm using the js-yml and writer-yml libraries. The problem I'm having is that with every query or change from these libraries or even opening bootstrap modals the application electr...
asked by 16.03.2018 / 14:43
0
answers

checkout in project svn node / gulp

Hello, could anyone tell me how I can checkout a svn project with node / gulp? Currently I have this routine that copies my project folder and creates a new one so I can minify the files and then upload to production. I want to change it so i...
asked by 15.03.2018 / 19:27
2
answers

Store sql query

Good afternoon, could anyone help me on node.js? My question is how could I store the values of a sql query in a variable as an example. let id = connection.query('SELECT * FROM marca ORDER BY id DESC LIMIT 1', function(err,result){ if(...
asked by 28.03.2018 / 17:46
0
answers

Error Installing dependencies in NODE project

I'm having problems with an application node. When I try to install the packages, dependencies will generate an error, how much do I try to install the express. follows the error:    npm ERR! Unexpected end of JSON input       npm ERR! A com...
asked by 28.03.2018 / 16:46
0
answers

Query with Mongoose

I have the following key: How can I make a query that returns all values (values of the composition key and measureUnityId. Return the name, for example) using NodeJS + Mongoose?     
asked by 21.03.2018 / 16:14
1
answer

Model, Express and Mongoose

I have the following code in express.js const express = require('express'); const load = require('express-load'); module.exports = () => { var app = express(); var bodyParser = require('body-parser'); //variável de ambiente app.set('po...
asked by 13.03.2018 / 21:55
1
answer

Set localStorage in different domains

I have three applications: 1. Login (running on port 8080) with very simple jQuery 2. API (running on port 4000) with Nodejs 3. Web (which runs on port 4200) with Angular When I log in and click "Log In", it will call the API,...
asked by 13.03.2018 / 11:08
0
answers

How can I detect the screen size by the server?

I'm using a Node.JS server and would like to know how you can do the following. If you notice, the GitHub 404 Error page appears on devices with larger screens, but we enable the mobile device emulator through the developer tools, the page...
asked by 11.03.2018 / 21:22
0
answers

NodeJS, PassportJS, or JWT Authentication in Google Cloud Functions

Hello, I would like to know if it is possible to do an authentication system using nodejs with passportjs or JWT integrated with Google Cloud Functions, I want to know exactly if doing authentication in GCF do not have to authenticate every time...
asked by 21.03.2018 / 17:19