Questions tagged as 'node.js'

0
answers

My HTTP request (GET) is not running in ngOnInit () - Angular 6

I have a CRUD on angle 6 that connects to node and mysql. When I access the homepage the getQuotes () function loads all the data I need. When I access the screen to update a record and perform this update I'm forwarded to the home screen, but t...
asked by 25.09.2018 / 19:50
0
answers

Node js without framework, check code

I'm trying to work with nodejs without a framework to get a more detailed idea of how the node works. This code is as follows: I make a request in the database and I pass the result to the renderFile to be able to send the object to the page,...
asked by 18.09.2018 / 00:24
1
answer

Npm http-server does not run after being installed

Good afternoon, on npm (node package manager) installing http-server, would anyone have an idea why http-server is not being recognized? Editing--->withlive-serversamething...somepathconfigurationdetail...     
asked by 21.09.2018 / 21:51
0
answers

Bring only authenticated user data to the screen

I'm developing an app with ionic3 and Firebase. I'm trying to bring in only requests from a particular user, but I'm having problems. When I call the getAll() function it brings all the requests from the database. But when I call the f...
asked by 20.09.2018 / 14:28
1
answer

return to view that fired the form in case of some error! Nojde + Express

Good morning, it seems simple but I still can not do it on my own and I did not find it on the net, I just wanted to return to view that triggered the submit, I have a simple register screen. controller - > model in the controller has the val...
asked by 19.09.2018 / 15:43
0
answers

subscribe xml Nfse using node.js

I need to sign an xml for Nfse, I'm using the xml-crypto librarian, however I get the return that the signature is incorrect. Can someone tell me another javascript library? Here's a snippet of my code with xml-crypto var SignedXml = require('...
asked by 28.09.2018 / 15:12
1
answer

Error Can not GET /index.html Node JS

I think the problem is in assigning routes, which I tried to do but with no success.     
asked by 20.10.2018 / 21:21
1
answer

Only bring specific data from firebase

Well, I'm trying to develop an app with ionic 3 and Firebase. But I'm having problems. You are bringing all requests to all users (getAll). I wanted to know the correct way for me to bring only the user requests themselves; getAll() { return...
asked by 19.09.2018 / 16:49
0
answers

Promise test of co-routine in NodeJS with mocha and sinnon

I need help with the help of your application, I'm trying to test a function that returns a promise.coroutine and I'm not getting it anyway ... const addClientUpdateTodo = (cliente) => { let responseClient, responseTodo return new (Prom...
asked by 19.09.2018 / 20:04
1
answer

Format object with array of objects in properties - variable scope problem

Good morning, I have a problem with returning a webservice, I make a query to get Categories, and then another to get the items in that category. The goal is to set a return on the pattern: { "categoryId" : 1, <--- resultad...
asked by 10.09.2018 / 03:19