Questions tagged as 'nodejs'

1
answer

Passing variable from html form to nodejs

I am creating a webproxy with nodejs to be able to access "anonymously" to another site, so this is my server: const http = require("http"); const url = require("url"); const request = require("request"); const fs = require('fs') var server =...
asked by 23.08.2018 / 02:58
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

The best way to consult a large amount of data with MongoDB

I have a 1.6GB collection that basically have 2 data: nombre and documento . The document has this structure: { "_id": ObjectId("5a6ba42850c4631898754a06"), "nombre": "Jorge", "documento": "4918273627" } I look for th...
asked by 07.02.2018 / 23:58
1
answer

Error in Routing in Node Js

Hi, I'm learning Node and I'm using the ejs library to do renders and routes, but I have a little problem. I would like to know how I can make my Bootstrap navbar correctly point to my routes ... Right now that's how I got my answers from...
asked by 26.12.2017 / 00:14
3
answers

As insert invisible characters (hidden) in a text

A while ago I saw a website in English that I was unable to translate with any online translator, including Google translator. This is a piece of text:    Саrrоts аrе nоt јust fоr Вugs Вunnу! Іt іs а rісh sоurсе оf nесеssаrу   nutrіеnts аn...
asked by 28.06.2016 / 04:40
1
answer

Display an arrangement of a mongodb document in html / jade

Greetings, I have a problem and I do not know how to consult the elements of a document that has an arrangement and show them in Jade. Recibo.aggregate( {"$match":{"nombre":{"$in":req.body.listNombrePTC},"fecha":{"$gte": lastWeekDay, "$lte": t...
asked by 09.02.2017 / 22:11
1
answer

Request to external XML files

I work in NodeJs , I started using an API for anime / manga search , but unlike other APIs that I used, it was not available in > JSON , only in XML . The format it has is the following: <?xml version="1.0" encoding="utf-8"?> <...
asked by 13.01.2017 / 00:07
1
answer

problems in form with input text and input file

I'm doing a project that requires a form with several input text fields and an input file, and something very curious happens to me and I just give the attribute enctype="multipart/form-data" to the form, the input text data are not sent...
asked by 20.12.2016 / 02:28
1
answer

npm does not install packages

I'm trying to install Electron, I've done it before but now when I do it (with clear sudo) it reaches a point where the console says:    node install.js and there is nothing else that happens ... when trying to close the console it tells...
asked by 17.11.2016 / 22:06
2
answers

Problems creating or updating records from array

I need help. I am setting up a system for loading notes per subject per student. I put together a spreadsheet to load these notes (angular) and once they finished loading, I sent all that object to be processed, but when I try to save those n...
asked by 01.03.2017 / 16:36