Questions tagged as 'nodejs'

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

ZeroMQ patron Proxy (Router / Router) does not connect Front with Back or vice versa

I am practicing with the ZeroMQ module to create Socket but I am having a problem with the Proxy pattern (Router / Router), I have been able to verify that the Client connects well with the Front and the Worker with the Back but when it arrives...
asked by 22.09.2018 / 13:49
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

Close SQL SERVER connection in node.js

I have this code where I open the SQL SERVER connection but I need to close it ... does anyone know how to do it? router.post('/api/v1/Login', jsonParser, function(req, res){ if(!req.body) return res.sendStatus(400) console.log(req.body)...
asked by 20.09.2018 / 22:42
0
answers

webpush notifications from the backend side

I have a question about how to push the notifications from the server side, I have seen on the Internet and especially the documentation provided by Google. But I can not make the backend finish sending the notification (using nodejs) to the use...
asked by 21.09.2018 / 14:18
0
answers

logical programming algorithms

hi community stackoverflow I hope I will not bore you with so much explanation I will try to be a retailer so that you can understand my problem. I need your help to create an algorithm, I'm not asking you to do my work but rather give me some...
asked by 20.09.2018 / 20:59
0
answers

error when loading the page in an app vue already published

I have an App Vue that uses vue-router, to publish it use the following: install express create a server.js file insert the following code CODE var express = require('express'); var path = require('path'); var serveStatic = requir...
asked by 18.09.2018 / 21:05
0
answers

Error in the modules when configuring a webpack with ReactJs

I have an error when configuring a webpack with Reactjs. I get this error that is below and would like an explanation. The error that comes to me in the terminal is the following: ERROR in Entry module not found: Error: Can't resolve 'C:\re...
asked by 22.09.2018 / 04:26
1
answer

How to pass data between Includes in the same query of sequelize?

I have a problem with sequelize, I need to consult several tables in the same query, these are nested with Include: [] so fine, but I need to pass the result of a nested table (coins) to another table of another include (prices), since with re...
asked by 23.09.2018 / 21:51
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