Questions tagged as 'node.js'

2
answers

HTTP request request

I'm developing a restFull API. I have this route: /senha No POST I save the password; No PUT I update the password; No DELETE I delete the password; No GET I call the password; But when I use...
asked by 11.10.2018 / 18:15
0
answers

SASS and Grunt without installing Ruby

Is there a nodejs (grunt) plugin to work with sass without having to install ruby on the machine? Today I work with grunt-contrib-sass but then I need to have the ruby on the machine for it to run, do you have any alternatives? Does anyone...
asked by 03.10.2018 / 17:03
1
answer

How to handle ERR_CONNECTION_TIMED_OUT error in webscraping using a list

I'm learning node.js and got with the help of @Sorack joking with a webscraping. With respect to the code the following happens when the statusCode of the page is equal to 200 the page returns the information and generate it in the file as re...
asked by 02.10.2018 / 22:12
1
answer

How to name each row in a url list

Can I name each line in the url list, to return the nickname I gave it to? Type so the result was this: Prefeitura Municipal de Bocaiúva do Sul | PRONIM TB 518.01.07-013 | Prefeitura Municipal de Matinhos | PRONIM TB 518.01.04-000 | | PR...
asked by 01.10.2018 / 22:25
0
answers

Questions about how to efficiently use mysql pools with node.js

Reading the Documentation from mysql it offers the creation of pools, but it has a parameter called connectionLimit and mine doubt is on top of that! This limit that I will impose is in relation to: How often will a query be done on...
asked by 01.10.2018 / 20:08
0
answers

Problems connecting Node and MongoDb

Some days ago I'm having a problem with a code that I can not resolve. What I am trying to do at the moment is to register the users in mongodb through the node. I am using the view mechanism ejs, but until then I have checked everything and it...
asked by 23.09.2018 / 03:15
1
answer

Problems with routers node + express

I have a sequence of methods (get, post, put, delete), however the put method is wrong and I do not know how to solve it. This is the snippet of code: router.route('/') .get((req, res) => res.status(200).send('Lista de Produtos'))...
asked by 26.09.2018 / 22:13
0
answers

NODE error html.split is not a function

var request = require('request') var cheerio = require('cheerio'); var arquivo = require('fs'); var innertext = require('innertext'); request('seu link aqui', function(err, res, body){ if(err) console.log('Erro:' + err) This code is retur...
asked by 27.09.2018 / 06:47
0
answers

Problem with toLocaleString on nodejs in production!

Talk the guys! I'm having trouble using toLocaleString in production! By using toLocaleString this way const number = (num / 100).toLocaleString('pt-BR', { style: 'currency', currency: 'BRL' }); In mac the return is correct $ 10,000.00 when...
asked by 21.09.2018 / 13:31
1
answer

Crawler - how to access several pages

I've put a code on the node to search for the system version and the name of the municipality of a portal, but I'm not able to get it to fetch the information of another municipality from just one. On request I would like it to loop and acces...
asked by 28.09.2018 / 20:29