Questions tagged as 'node.js'

1
answer

Send array of objects as Ajax parameter

I have an array of composite objects as follows: {file: File(871699), x: 0, y: 0, width: 2, height: 2, …} Each vector house has an element as described above, and the first parameter, the file is an image that has the following data: file...
asked by 21.02.2018 / 22:27
1
answer

How to leave the NodeJS running as a service? [duplicate]

I was giving a search here and found only solutions for linux , leaving the server running at dos is not safe, because at any moment there might be a fall. The question is, is there any method to let NodeJS run as ser...
asked by 19.02.2018 / 17:41
0
answers

Problems with data node.js (SQL Data)

I'm having a question regarding receiving SQL data in an array in JavaScript. I have the login information and everything else, regarding the server, but the issue is not the connection, it's saving the data in an array. Example: nameArray [user...
asked by 16.02.2018 / 17:43
1
answer

Store SQL data in a javascript Array

I have a question regarding the receipt of SQL data in a Javascript array. I have the login information and everything else, regarding the server, but the issue is not the connection, it's saving the data in an array. Example: nameArray [usernam...
asked by 16.02.2018 / 17:02
0
answers

getTime () returns unixtme different from date

I have a date string that when I assign this string to a date and later I will get the getTime of it, if the application is running on different machines the returned unixtime comes with a few different hours being two hours the di...
asked by 15.02.2018 / 00:26
1
answer

Angular4 edit method

I started in the angle4 shortly, I need to get the information of a field and go to the edit screen, I already have this information in a console.log of the screen edit that I put to test, only problem is that n to achieve display in the fields,...
asked by 14.02.2018 / 12:07
0
answers

Possible reading of data in firebase

Good afternoon  I would like to ask a question regarding the Firebase Realtime Database.  I have some data stored in my firebase but wanted to make a compilation or reading them through an HTML page is possible and how to do     
asked by 22.02.2018 / 14:24
1
answer

Update method does not update in the database

I have a problem at the time of editing, when I click on the button it looks for the information of the fields in the console.log, already has the ID in the route also the problem is that it does not update the information in the bank, p> expor...
asked by 22.02.2018 / 14:21
0
answers

Error MongoDB - geoNear "no geo indices"

To get a MongoDB database I use the following code: router.get('/multibancos', function(req, res, next){ MB.aggregate().near({ near: { type: "Point", coordinates: [parseFloat(req.query.lng) , parseFloat(req.query.lat)] },...
asked by 08.02.2018 / 23:19
1
answer

Error Unexpected token d Node

I'm having trouble using http to make a call on a API .    "{\"error\":\"Unexpected token d\",\"code\":400}" const express = require('express'); const router = express.Router(); const http = require('https') const conf...
asked by 08.02.2018 / 19:33