Questions tagged as 'node.js'

0
answers

Configuration electron js on windows

I'm studying electron js and following this tutorial link however in windows there are some errors. First of all I gave the bug because of the enviroment in windows, I managed to solve this but then started another problem to run the npm run d...
asked by 10.11.2016 / 15:55
1
answer

Doubt with ionic design generation

I have this environment installed:    Nodejs = node-v6.9.1-x86.msi       npm = 3.10.8       jdk = jdk1.8.0_91       Cordova = 6.4.0       ionic = 2.1.13 On entering cmd as administrator, I requested the creation of a project forcing t...
asked by 30.11.2016 / 02:38
2
answers

Auth rules with NodeJS + Passport + MongoDB [closed]

Let's doubt it. I am using a blog as an example. I have the Administrator. It makes a full CRUD inside the system. In addition to it I have the Editor and Reviewer. The Editor creates blog posts, but does not publish. And the Reviewer, sees and...
asked by 18.11.2016 / 17:26
0
answers

Socket.io-Stream does not issue events

I have a client application that sends files through the socket to my server, these files arrive as stream through Socket.io-stream, and I write them to the disk without any problem everything was fine, until I have to perform a treatment in eac...
asked by 27.09.2016 / 18:19
1
answer

Function that executes in scheduled time

How to create a function that is executed for example every 5 minutes in nodejs. I found the lib: link but I do not know how to make it run always, and not just once     
asked by 27.09.2016 / 05:23
1
answer

Is there a better way to populate this array in node.js?

Below is my function of node.js (I'm new to this), I would like to populate the array with random numbers (it can be zero as well), is there any faster way to do this? What am I doing? QLearn.reset = function() { for (var a=0; a<100;...
asked by 26.09.2016 / 15:29
1
answer

What is the best way to generate custom errors

For example, the user types an invalid value, and I want to generate an error. Would it be using throw new Error("Você digitou um valor inválido") and dealing with try/catch as in Java? Or is there a better way to do this with Node...
asked by 24.09.2016 / 05:15
0
answers

Application error when performing heroku open

Well folks, I started a few days ago using Mean Stack and I'm still very much in the beginning. I'm using the Getting Mean with MongoDb, express, angular and node.js book. I'm really enjoying the book, but due to the advancement of tech...
asked by 02.09.2016 / 21:36
1
answer

Difference between extends and include using the SWIG Template Engine

I'm using the Template Engine with NodeJS and I could not understand the difference between using extends and include. I was able to understand that the include you directly included a part of HTML anywhere, but I could not differentiate from th...
asked by 20.09.2016 / 21:31
0
answers

File recording from stream-webcam

I have a question regarding my stream code with getusermedia. I want to send to my Node.js server a recording of my webcam. My form receives a video that I can upload, but it would have a second function - record a webcam video and send it...
asked by 21.09.2016 / 21:26