Questions tagged as 'express'

0
answers

How to use a model in another model in mongoose | Node.js with Mongoose

I'm doing a task application with node.js, express and mongoDB, the fact is that I'm trying to use my data from my model called User in my model called Task, my schema User has a field called tasks which is an array where all the tasks go, then...
asked by 08.10.2018 / 17:52
1
answer

Problem with dynamic table in react

I am new to react and I am creating my first crud application with Mysql / react / express js. My problem is that I can not render the body of the table because the data that I am receiving apparently I am not storing it well. The data I g...
asked by 02.10.2018 / 22:14
0
answers

NODE JS Express Session lost redirect Payment Gateway

I have an express session, but when I redirect to payment gateway, the gateway return to my page but the session is lost var session = require('express-session'); app.use(session( { name: "sessionData", secret: "mysecret"...
asked by 25.09.2018 / 18:19
0
answers

how to count active users with javascript?

I wish to be able to count the users that are connected to a web page from the server, it is programmed with nodejs     
asked by 25.09.2018 / 23:04
0
answers

Sequelize does not validate my model

I'm new to trying to program and started with this framework called sequelize to make a connection to a database. with sequelize-cli create the following model called users to modify it to add some validations and stay as follows: 'use stri...
asked by 24.09.2018 / 23:02
1
answer

How to make a post from Express to return a Json with the variables entered in a form?

Hello everyone and thanks for the help! I have the following problem and I am new to Express, it is for a work project. What I need is to make a post from a form and that the answer is a JSON with the data entered in the form. I'm using...
asked by 12.09.2018 / 18:42
0
answers

Error: Most middleware (like methodOverride) is no longer bundled with Express and must be installed separately

I need to create a web service and I'm using Node.js on the server. But when I'm running on localhost I get an error:    Error: Most middleware (like methodOverride) is no longer bundled with   Express and must be installed separately. Please...
asked by 17.09.2018 / 22:50
0
answers

How can I debug a REST API made with express when making an http request with POSTMAN?

Good morning, I'm doing an API with Node JS and I use EXPRESS. I want to put breakpoints in order to debug the application every time I send a request with POSTMAN. I'm using VISUAL STUDIO CODE, I have the file launch.json { // Util...
asked by 13.09.2018 / 18:20
2
answers

Render multiple queries in Node Express

I am working with Node.js (express) and MySQL and I have had problems trying to make several queries in the same route. The error it throws is:    Can not set headers after they are sent. And the code is this: router.post('/test', funct...
asked by 09.09.2018 / 08:27
0
answers

PDFKit and Node JS; when creating PDF document How to send it from the server to the client?

my problem is as follows; I have a web application created with NodeJS that shows a form where users add data that will include a PDF document created with PDFKit, by clicking on the submit button the form is created and the document remains o...
asked by 28.08.2018 / 05:49