Questions tagged as 'node.js'

1
answer

Collections - mongodb

I have a collection called suspeitosSchema and another call acoesSchema . suspectsSchema: const suspeitosSchema = new mongoose.Schema({ sexo: { type: String }, etnia: { type: String }, cumprimentoCabelo: { type: String...
asked by 01.12.2017 / 19:58
1
answer

How to improve this: Hell callback?

I'm finishing the development of an ad system, the system uses the redis server to save data and display campaigns directly from ram, since the pathology of these systems requires a lot of disk consumption. At every x time I need to get the valu...
asked by 19.09.2018 / 17:09
1
answer

How to configure the Visual Studio Code to open the console in a new window?

In earlier versions the Visual Studio Code Console opened in a window outside Visual Studio Code , but in the new versions this Console screen was opened in of the Visual Studio Code itself, which greatly disrupts debugging because the cons...
asked by 21.12.2015 / 11:55
2
answers

HTML Desktop App with Node.JS + Socket.IO

I need to develop an HTML-based chat app that connects to a Node.JS server that is running with Socket.IO. I started to develop much of the app using TideSDK, but at the time of the integration of calling the Socket.IO script the app did not...
asked by 10.02.2014 / 19:30
2
answers

How to know which conditional is giving true?

For example, I have the following if : if(!condicao1 || !condicao2 || !condicao3){ retorno erro com a condiçao que nao existe } When it enters this if I would like to know which of the parameters is missing to return an error...
asked by 04.01.2018 / 02:07
3
answers

How to maintain a running nodejs server?

I want to know how to keep my server nodejs in permanent implementation in my vps Ubuntu I bought without the need to have it run the Putty and run the node app.js command. I made a REST API that will be consumed by a mobile applicati...
asked by 19.02.2014 / 15:17
1
answer

How to create loop to issue an event in socket.io?

I have an architecture problem. I have a code using socket.io at nodejs : socket.on('images',function (aData){ ... socket.sockets.emit('show', JSON.stringify({imagens : json})) }); I'm trying to broadcast a broadcast from tim...
asked by 20.01.2014 / 11:16
2
answers

Node.js compile the JavaScript that runs on the server?

According to the V8 documentation, it compiles JavaScript for machine code as an optimization strategy. So, does the JavaScript running on the server via Node.js compile or interpret?     
asked by 29.03.2017 / 13:22
1
answer

What are the implementation differences between the Browser console and the NodeJS console?

Yesterday I was using a MooTools class in NodeJS and I encountered strange behavior in console.log of NodeJS. The code works beautifully but the console does not show what I know is there. For example doing: function FN(nome) { t...
asked by 07.04.2015 / 08:52
1
answer

EdgeJS and Entity Framework

Next, I'm learning NodeJS and I'm thrilled with it, but I found my first stone in the path, accessing a relational database using some ORM (precisely to access PostgreSQL). At first I thought about using SequelizeJS , I even found it well do...
asked by 03.08.2015 / 13:31