Posts by lucas menezes • 89 points
16 posts
-
0
votes2
answers28
viewsA: Import JSON Database to Firestore
I managed to find a solution. Really foreach was not respecting the iteration of my script. so I created two functions that keep my iteration contained, and call it at the end of my script. Follows…
-
-1
votes2
answers28
viewsQ: Import JSON Database to Firestore
I have 2 databases in json where one is of indications, and the other are the comments of these statements. Follow the model of each database (with a single data): indication: { "id_indicacao": 52,…
-
0
votes1
answer46
viewsA: How to create triggers in Firebase functions
I found an easier way to perform this kind of Rigger, instead of doing all this in functions it’s more practical to use . onSnapshot() to do this, follow the documentation:…
-
0
votes1
answer46
viewsQ: How to create triggers in Firebase functions
I’m working on an application that needs to receive a notification whenever a client opens a request, but I’m not able to create a Rigger so that whenever a new document is opened Firebase will run…
-
0
votes0
answers34
viewsQ: Single port being disputed by multiple customers
I am developing a solution for consuming a condominium box API in Nodejs, using the net library to make the communication. Our application makes direct communication with the condominium hardware…
node.jsasked lucas menezes 89 -
0
votes1
answer88
viewsA: Variable does not change in nodejs
It was my mistake and not atypical Node behavior, I was running the code by Runner code and not through nodemon. If anyone else has similar problems with Node, you need to use nodemon:…
-
0
votes1
answer88
viewsQ: Variable does not change in nodejs
I am developing a Node application for Guardhouse Communication (API) and I am having trouble changing the value of a variable. follows below the code: var net = require("net"); var express =…
-
0
votes1
answer15
viewsA: Error using Sound Exchange (Sox)
I found the problem. Somehow the installation of the binaries performed by the documentation seems to be depreciated. Fortunately I found a tool that makes the installation of these binaries:…
-
0
votes1
answer15
viewsQ: Error using Sound Exchange (Sox)
I am trying to use the Goggle Speech-to-text API in Node.js, but when I try to run the service I find the error: My environment of development at work today is Windows 7, however I already managed…
-
0
votes0
answers62
viewsQ: Use firebase custom authentication method in Vuejs
I am trying to run firestore authentication through a custom token (JWT). However I am facing problems to do so. The firestore documentation asks us to install the 'npm firebase-admin' library,…
-
0
votes1
answer118
viewsA: Error using firebase.firestore.Fieldvalue.serverTimestamp() method in an array
I found an answer. Servertimestamp() is a deprecated way to use with arrayunion(), so google is just not using it anymore. To create timestamps through the firestore you only need to use the new…
-
1
votes1
answer118
viewsQ: Error using firebase.firestore.Fieldvalue.serverTimestamp() method in an array
I am creating a system of questions and answers, and in this system and this system I need the answers to enter an array with the name of the respondent, the value of their response and the…
-
-1
votes1
answer79
viewsQ: Array being rewritten completely within foreach
I’m running a voting system through the firestore, and I’m having a problem regarding the behavior of an array within the foreach, follow the code: busca_votos: function(pergunta){ let path =…
-
1
votes1
answer911
viewsQ: Validate password fields using Javascript / Regex
I’m setting up a page where the user can change his password and need to validate two input’s with the following rules: the password must have 1 character and 1 number. there cannot be 2 characters…
-
4
votes5
answers583
viewsQ: How to sort json in php
I have the json example I’m using below: [ { "unidade": "124", "bloco": "Bloco B" }, { "unidade": "21", "bloco": "Bloco A" }, { "unidade": "94", "bloco": "Bloco A" }, { "unidade": "31", "bloco":…
-
-1
votes1
answer316
viewsQ: Classes vs Constructor Functions / Factory Functions
I’m learning js and I don’t know what the difference is between creating a construction function and creating a class, can anyone explain to me?
javascriptasked lucas menezes 89