Questions tagged as 'node.js'

1
answer

Problems with the gm (GraphicsMagick) module and node.js

I'm doing a test project to see the functionality of the gm module, since I need to manipulate images on the server (resize, put watermark , generate thumb , etc.) / p> Well, I installed GraphicsMagick via Homebrew using the brew install G...
asked by 20.05.2014 / 19:24
2
answers

Get connection instance

I would like to get the connection from the dbConnection.js file, but run the query on another file (DAO). I'm doing a NodeJS course and what I've learned is getting this connection and using a 'gerialized' method to run the queries. (in dbCo...
asked by 28.12.2018 / 12:51
0
answers

Upload file between API's Node.Js

Hello, I have an API on nodejs, and I need to send a file to another API. Does anyone know how I can forward the request? I'm using https.request ( link ) to make the second request, and I get the file in req.files.file .    ...
asked by 27.12.2018 / 14:00
1
answer

Consign makes autoload of the module but has no response in the browser

nodemon] restarting due to changes... [nodemon] starting 'babel-node . --presets env' consign v0.1.6 Initialized in app + .\routes\index.js Server rodando com o express configured conf, nodemon warns that it loaded the index.js but in the site...
asked by 28.12.2018 / 22:41
0
answers

Change create.objectURL to HTMLMediaElement.srcObject

When adding the createObjectURL class, it is accusing the failed error in some browsers, after the searches, I checked that I can use HTMLMediaElement. But how can I include it in my project? export class CameraController { constructor(vi...
asked by 20.12.2018 / 13:28
0
answers

How to change the connection to the database using Sequelize + MySql + Express depending on the parameter sent in the request?

For example, when you receive a parameter in the request equal to db1, in the precise controller that uses the db1 connection string When you start the NodeJS server, the config.json configuration with the connection data is already loaded....
asked by 19.12.2018 / 18:17
0
answers

Two forms sending data to an Node API

I'm developing an application with Node and Mongoose. My problem is this: In the backend I have the model of an entity called Equipment. Schema has several parameters. I have a form to create a Equipment (this form works normally). The creati...
asked by 21.12.2018 / 17:45
1
answer

Why can I pass string, but I can not pass variable to query MONGO NODE

I want to return a JSON from MongoDB with some filters, the problem is, when I try to pass a variable through the function, it does not work, this is the code: async find(req, res) { const { filter, input } = req.body; console.log(filte...
asked by 30.12.2018 / 00:11
3
answers

Modal does not date in Electron, how to solve?

I have a modal problem. My problem is that modal, does not close when clicking the button, tried in many ways, but none worked. How can I resolve this? <script> var read = require('read-file-utf8') var loki = requir...
asked by 29.12.2018 / 23:39
0
answers

Reading fields of type BLOB with node-firebird

I would like help finding a way to read a field of type BLOB as a string using the "node-firebird" module of npm, below the code and problems that I can not handle alone. db.query(query, parameters,function (error, result) { if (error)...
asked by 12.12.2018 / 19:26