Questions tagged as 'express'

1
answer

Broadcast via a route on Express

I have an endpoint in an application node that when calling should trigger a broadcast to the connected users in the application node. That is, as soon as the user entered the system it would connect through the socket.io and would wait until an...
asked by 24.09.2015 / 21:06
1
answer

PDF corrupted after download?

I am generating PDF's of the data I have in a table in my client, I send the data to the server and there the PDF is generated. After it is ready, the PDF is downloaded, and it is at this stage of the process that it corrupts. However, if bef...
asked by 15.08.2017 / 20:19
1
answer

Controllers and Routes in node js

I wonder if it makes any difference between using only routes , or routes with controllers in node js could someone give me some examples of how to implement routes and controllers on the node using express js ?     
asked by 22.06.2017 / 22:12
1
answer

How to use other HTTP methods in HTML forms?

I'm using Express.JS to do a CRUD on NodeJS. I was trying to make use of the new HTTP methods, such as put , but when I put it in the method attribute of the form it does not seem to work. The form code: [...] <form action="/p...
asked by 25.02.2018 / 16:08
1
answer

The insert of the Node express with problem

I'm new as a Node Express programmer with Mysql, I created the implementation to save, however he created the registry with null in the table, see how I performed the test in postman; This is my entity; module.exports = (sequelize, Se...
asked by 30.07.2018 / 13:39
1
answer

What is the function of app.listen in Express?

Recently I started my studies in NodeJS and Express. From what I've been reading, app.listen, basically, is what makes the server listen for requests coming from the defined port. But I noticed that when running an application in Express it r...
asked by 14.08.2017 / 19:52
1
answer

Get size of a requisition

On my system, I get several requests, I would like to know if there is a way to get the size of this request ( req ) received in kbs , to get a sense of how much bandwidth was spent for this send .     
asked by 10.03.2017 / 13:32
1
answer

Node JS, Socket.IO Rooms and namespaces

I'm developing a map-based android app that will create chat rooms in some pre-determined places and places where users need them. I did some research with mechanisms that I could use in my application and came across the concept of namespac...
asked by 12.07.2017 / 15:47
1
answer

What is the command "res.send ()" in Express?

I am studying NodeJS for academic purposes and during the implementation of a project I came across this command. What is it for?     
asked by 09.10.2017 / 00:42
1
answer

User profiles for REST API access using NodeJS + ORM SequelizeJS

Is there a way, or some nice package, to work with user profiles for access to certain REST API endpoints as per their permission? I'm using NodeJS + Express + SequelizeJS as ORM.     
asked by 05.12.2016 / 16:49