Questions tagged as 'node.js'

1
answer

Problem executing a query on a loop repeat in the Mssql Node

So, I am using node and mssql package (sql-server) to query my database. however I am facing a difficulty to return queries that need to be executed within a loop. Maybe it's something to do with the way I'm performing the callback. In...
asked by 21.08.2017 / 22:06
1
answer

List of values in a session using NodeJS

I'm using the express-session and express modules and I need to create a list of values in an item in a session so that at some point you can add values to it. Ex: req.session.category="Include key and value in this property" Could som...
asked by 29.03.2017 / 20:35
0
answers

Uploading two files from two different fields with multer

Using the multer I am trying to upload two different files that come from fields in forms different and has different storage path as well: let storageAudios = multer.diskStorage({ destination: (req, file, callback) => { ca...
asked by 29.03.2017 / 16:04
1
answer

How do I view files before downloading?

I want a PDF (generated on my server) to be sent to my client and opened in a new tab before being downloaded. I've already been able to get it downloaded directly from the server to the client, but now I need it to be displayed instead of being...
asked by 16.08.2017 / 16:26
1
answer

Rename PDf file before opening for preview

I'm getting a PDF file in response to a POST request, and on the server side I've set up the file name and everything else. But now I'm viewing it in the browser instead of downloading it and it no longer obeys the name placed on the server and...
asked by 16.08.2017 / 19:14
0
answers

Node.js + AdminLTE + Express

Hello, I would like an help to start a small project in Node.js + MySql and AdminLTE layout. Regarding Node.js (JavaScript) and MySql all quiet, the problem begins when I need to join the visual part. I use AdminLTE because I'm a backend deve...
asked by 07.10.2017 / 15:26
0
answers

Doubt: Web Sockets and how to use

I was seeing this question link So I did not read the answer on nodeJS and I researched, but I did not understand much. How to apply this technology (nodeJS)? I am developing a site in php / jquery and in it I have administrative panel wit...
asked by 07.04.2017 / 06:07
0
answers

Stream video with Nodejs and Socket.io

I need help streaming with Nodejs and Socket.io. I am using the rtsp-ffmpeg library to perform the stream. I was able to execute it by transmitting in img format according to the specific documentation itself, but I can not send an mp4 even afte...
asked by 17.03.2017 / 17:11
1
answer

Problem with startar gulp serve

Good afternoon, I'm creating a portal in AngularJS and Node. After installing the npm npm install and bower bower install The tutorial asks you to do the gulp serve command, but it has the following return:    [1...
asked by 17.11.2016 / 16:59
0
answers

API RESTFUL - What would be [duplicate]

What would a RESTFUL API be? What difference does it make to a Web Service (which has WebMethods with CRUD operations for example)? Thank you     
asked by 08.05.2017 / 00:16