Questions tagged as 'node.js'

2
answers

Asynchronous execution problem on node server with Express, MySQL and Socket.IO

I'm developing a project on Node.JS with Express, MySQL and Socket.IO. When the user opens the main page provided by the server, the request must cause data to be read from the database and sent to the client for it to be listed on the page....
asked by 12.08.2015 / 16:27
1
answer

Difference between Multi and Single Thread

In terms of processes, what is the difference between multi-threaded and single-threaded pro? How will both forms work with a request?     
asked by 16.07.2015 / 20:15
1
answer

Edit an element within an object, within an array, with Mongoose

I need a help! I'm new to Node.JS and I decided to "create a system" to put into practice what I already know and create challenges to encourage my learning! I did a beginner workshop (with Jean Carlo Suissa) that gave me a good foundation, but...
asked by 04.03.2015 / 02:21
2
answers

Error - Password update bcrypt mongoose without encryption

I am not able to encrypt my password during an update using bcrypt on mongoose. The password is changed without problems, but without encryption. Follow the schema: var mongoose= require('mongoose'); module.exports= function(){ var schema=...
asked by 28.05.2015 / 14:50
1
answer

Problem with NodeJS / Express parameter passing

I'm creating my first application in NodeJS and managed to structure the application, connection, directory structure, routes, anyway, everything working fine. Now I've implemented the login system and I've already encountered an error in pas...
asked by 29.09.2014 / 09:01
1
answer

How to find exact RegExp and do this using constructor syntax?

I have an algorithm that takes multiple full paths of files and verifies that each of them is 'banned' by the server. The var s of for refers to each of these paths and sets is an array with regular expressions to check....
asked by 15.01.2015 / 23:53
1
answer

NodeJs query in SQL Server

Hello everyone, I need to do a filtered query for days in SQL in a NodejS application, but during the POST that is when I make the NodeJs filter I am accused of a value conversion error. When I run get get myself to retrieve the values of the Dat...
asked by 21.09.2018 / 17:17
1
answer

Replace xml tag with nodejs

Hello, I would like some help to remedy a problem I am facing. I need to rename the tags of an xml file by nodejs. I thought about making use of regex, using fs to read the file, but I was kind of lost. <RESULTS> <ROW> <COLU...
asked by 04.10.2018 / 08:15
2
answers

How do I get a URL parameter in Express?

My URL is coming like this http://localhost:3000/menus/5.5 and it is bringing all the records of 5.5, but I would like the URL to be http://localhost:3000/menus?price=5.5 to have the same result, as you can see below; Thecodeth...
asked by 19.08.2018 / 10:39
1
answer

Do I need to have a server to make a login system with the react?

It may be a silly question but I'm pretty confused about React.js, I developed a Webapi in Asp.net core and it's already working ... I need to make a login system in React. Thinking about how I would develop, in the case I program in php, I woul...
asked by 05.10.2018 / 16:17