Questions tagged as 'express'

2
answers

Does not show all records when performing an SQL SERVER query through AJAX

I have a problem getting all the records of a query in SQL SERVER through PHP and AJAX. When I send POST by the classic method of the form (submit), all records are displayed without any problem. However, when doing the query by mean...
asked by 02.10.2018 / 01:07
1
answer

Json Web Token (JWT) in Node.js with express

I am working with the Javascript Json Web Token library, where I create the token with the function: var token = jwt.sign({data: 'foobar', 'secret', { expiresIn: 60 * 60 }); To verify my usage token, the function: jwt.verify(token, 'shh...
asked by 13.07.2018 / 21:15
1
answer

Secondary routes (nested routers) in Express

First, a little background and context : I am developing an application with nodejs + express . I am new to this technology, and the application will be of some complexity. So I'm doing it for modules , each on a specific...
asked by 17.04.2017 / 17:00
1
answer

How to solve this jade error?

I'm just getting started on nodeJS and I'm using JADE as view engine , I'm just doing tests, nothing extraordinary, and yet throws the following error: C:\Users\Familia\Documents\node\expres\node_modules\promise\index.js:1 (function (exports,...
asked by 01.04.2018 / 23:25
1
answer

Error: ENOENT: no such file or directory, stat 'C: \ public \ index.html'

Trying to visualize the main html file, I could not find the specific path, no matter how hard I tried. server.js import express from 'express'; import webpack from 'webpack'; import webpackDevMiddleware from 'webpack-dev-middleware'; impor...
asked by 26.03.2018 / 23:52
1
answer

Help with three.js in express.js

I want to upload a .json format with objLoader of three.js, everything works perfect in webpack dev-server but when I try to open it through Expressjs The error appears: this is my threejs code group = new THREE.Group(); const objLoader...
asked by 03.10.2018 / 00:54
3
answers

Does not load the component in react. error in http: // localhost: 3000 / shows the message on the Can not GET page / when trying to load the React component

file: server.js const express = require('express'); const express = require('express'); const app = express(); const app = express(); app.use(express.static(__dirname + '/public')); app.use(express.static(__dirname + '/public...
asked by 09.08.2017 / 01:47
1
answer

Automatically reload files in NodeJS

I am working on a project with NodeJS , and I just realized that I must restart the server every time I make my changes, is there any way to avoid this? I am working with NodeJS 6.10 , express 4.13 , gulp 3.9 ,...
asked by 04.07.2017 / 16:06
1
answer

DDoS attack on ExpressJS

In the last days I am receiving DDoS attacks on my VPS, I have an API with ExpressJS, I have added the ddos module that blocks when it receives requests from the same IP but I keep receiving requests from different IPs and I do not know how to s...
asked by 27.09.2018 / 20:59
1
answer

share session in expressjs

I want to share the session that I create on the server to a router on the server: app.js var routesEvaluacion = require('./routes/evaluacion'); app.use('/evaluacion', routesEvaluacion); ... app.use(session({ secret: 'administrador',...
asked by 25.12.2017 / 23:39