Questions tagged as 'node.js'

1
answer

Broadcast via a route on Express

I have an endpoint in an application node that when calling should trigger a broadcast to the connected users in the application node. That is, as soon as the user entered the system it would connect through the socket.io and would wait until an...
asked by 24.09.2015 / 21:06
1
answer

Nginx - running php and node app in the same domain with different ports

I'm setting up a blocks in nginx, but I'm having trouble running two separate apps, see the following situation: I have 2 apps (PHP and Node.js) just a domain (example.com) and need to point port 80 for the PHP application and 8080 for the...
asked by 30.11.2015 / 15:34
1
answer

Listing all files in my application

I want to back up my application and send it to my bucket on S3. But for this, I need to first list the directories (along with the files), then upload them to S3. I found this tutorial but he did not it does, because you have to put each p...
asked by 07.10.2014 / 20:51
1
answer

Phonegap installation issue

I'm away from home and need to keep my projects up to date, I bought a very simple notebook for my trip, and in the installation of PhoneGap this is giving an unusual error in my opinion because I had never seen it, / p> I have already ins...
asked by 19.06.2014 / 06:26
1
answer

How do I deploy without changing the contents of a folder on the server?

I'm new to the world NodeJs and Git, I'm trying to develop from a system where users upload images. Every time I deploy the app, users' images are deleted from the public / uploads / How do I proceed so people's files are not deleted in...
asked by 19.08.2014 / 18:34
1
answer

Clear document write

I am trying to collect the time through a server where I squeeze the following app, so the problem is that when I do the res.write it repeats, is there any way to clear the screen to generate a new write? http = require('http'); http.createSer...
asked by 26.02.2015 / 19:55
2
answers

Nodejs / Phonegap / Cordova on tablet

I share the 3G of the Mobile with my android tablet when I am on the chartered bus. Here comes the question: I would like to know if there is a possibility of using the NodeJs / Phonegap / Cordova development environment to develop on the tab...
asked by 18.06.2015 / 16:12
0
answers

Bematech with Nodejs

I'm trying to connect bematech printer MP-4200 TH with NodeJs but I can not. var stream = fs.createWriteStream('/dev/ttyACM0', { encoding: 'utf16le' }); WhenIrunnothinghappens,itisnotprinting.Ialsotriedthecommandecho"test...
asked by 13.12.2017 / 10:26
0
answers

Copy directory to an ftp server using nodejs

I'm developing an application on nodejs where I need to access an ftp server and send some folders there. Before putting these folders on, I want to back up the folders on the server. How can I copy a directory inside the ftp server? The idea is...
asked by 30.10.2017 / 13:02
1
answer

Searching for keywords in ElasticSearch

I'm registering some objects of the type: [{ nome: "bom_atendimento", chaves: ["bem atendido", "atendimento bom"] }, { nome: "ruim_atendimento", chaves: ["pessimo atendimento", "atendimento ruim"] }] I need these keys to be identifi...
asked by 22.09.2017 / 17:33