Questions tagged as 'express'

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

ERROR LOGIN EXPRESS-SESSION

I used session-express to create a login session on a system, but I am having a curious problem, I can log in normally, I have page control, stored sessions in the bank etc, however, sometimes in the system it has an hour that it reaches a "limi...
asked by 23.08.2018 / 17:40
0
answers

nodejs of the error and for server after 2 minutes

Good night, I have a basic program that until yesterday was good, today the afternoon began to the error in the execution of the "nodemon app" or just the "node app" follows the error:    throw er // unhandled 'error' event error: read ECON...
asked by 25.08.2018 / 01:13
0
answers

Aggregation in mongoDB is not working right

Hello I'm trying to filter some data to render a table in a view here. The template is EJS. What I need to do is: Count how many times an id number appears with a given status. I've been able to count the amount that an id appears, but...
asked by 10.08.2018 / 20:41
1
answer

Generate an array from a query in mongoDB (Mongoose)

Good morning! I need the data from a mongo collection on the front end. I'm using Mongoose as an ODM, and I was a little lost in sending the data to the front end. In the query it returns me the documents in the collection, and then I need...
asked by 01.08.2018 / 14:09
0
answers

Generate chart using ChartJS on Express

I'm trying to render a chart using ChartJS. I'm using nodeJS (Express) and mongoDB. The idea is to get the data from the bank, go to the front, and from there, render the chart. I already have a little notion of how to do this, one option wou...
asked by 30.07.2018 / 16:12
0
answers

Search module optimized for nodeJS and sequelize

I am looking for a search module to integrate into my application to perform database queries for a 'Help Center' system. As I'm using Sequelize, you should have some module in the NPM repository that is integrated with this application for e...
asked by 30.07.2018 / 23:39
0
answers

Adapt request with Express for AJAX

It is possible from a request using express, convert it to ajax, or even if you can merge them. Example: app.get('/alunos',(req,res) => { const client = new Client(); client.connect() .then(() => { return client.query('SELEC...
asked by 27.07.2018 / 04:38
0
answers

Server error in Node.js

Server running on port 8080 events.js:183 throw er; // Unhandled 'error' event ^ Error: read ECONNRESET at _errnoException (util.js:992:11) at TCP.onread (net.js:618:25) After some time in the air the server of this error...
asked by 27.06.2018 / 15:46
0
answers

Express.js - How to access the value of a variable within a route

I have the following function function fileList() { const uploadFolder = './public/uploads/'; fs.readdir(uploadFolder, (err, files) => { files.forEach(file => { let arquivoNome = file; console.log(arquivoNome); }...
asked by 07.07.2018 / 23:42