Questions tagged as 'node.js'

0
answers

Changes do not take effect when I change Schema, using mongodb and nodejs

Whenever I make a change in my Schema I have to restart my mongo server or node for the changes to take effect. I'm using the nodemon, but it does not always update, has anyone ever had it? module.exports = function(app){ var Schema = r...
asked by 25.07.2017 / 14:46
0
answers

Accessing webservice with SOAP Headers and Node.js

I'm trying to access a webservice using Node.js (with module node-soap ) and that I first need to log in and then in the calls of other methods it is necessary to send the received Header in the login. I can log in and below the xml with the he...
asked by 20.07.2017 / 21:01
0
answers

Asynchronous nature of nodejs, loop for com querie mysql

Inside an upload route in nodejs I have this: router.post('/uploads',function(req,res){ //Omitido algumas instruções para melhorar o entendimento. InsereMidia = function(midia){ ExisteMidia(midia,function(midias_linhas){...
asked by 29.07.2017 / 20:18
1
answer

Save file sent in Ajax in the backend node

Hello I have a backend on node and I'm getting this ajax request var arquivo = $("#assinatura"); arquivo.on('change', function (event) { if (arquivo[0].files.length == 0) return false; var data = new FormData(); data.append('assinatura'...
asked by 20.07.2017 / 00:42
0
answers

show the file as image

I'm developing a site with node js, it has upload / download files like (pdf, slide, docx, etc.). And able to show the files that were uploaded. Now I have a problem showing it in the view (I wanted it to show the image of the 1st page of the fi...
asked by 12.07.2017 / 01:41
0
answers

Authentication with NodeJs and MySQL? [closed]

Does anyone know any article / tutorial / code that teaches you how to create a session login system or cookies using Node.Js + MySQL?     
asked by 08.07.2017 / 18:35
0
answers

How to run script npm in heroku in production?

I need to use the Sequelize migrations in a NodeJS application that is already in production in Heroku, but I do not know how to add the scripts in the package.json so that Database migrations always run, via npm script, by Heroku....
asked by 07.07.2017 / 23:07
1
answer

I have a problem to search for objects inside objects

I download a JSON file, by example
asked by 14.07.2017 / 20:28
0
answers

npm does not install dependencies and is apparently caught

When trying to install any dependency is not working, when searching about this some people said that the reason is npm not find folder for installation, but I changed the prefix in .npmrc to another folder and nothing. / p> Not...
asked by 15.07.2017 / 16:41
1
answer

remove Attribute from a Node in NexXMLDocument in DELPHI

I created an XML Document, when creating the 2nd. Node 'Header' comes with the attribute of the previous node. The Node is created as <Header xmlns=""> how can I remove the xmlns="" from the Node I used the following code...
asked by 07.07.2017 / 01:38