Questions tagged as 'node.js'

2
answers

read arrays in jade

I need to read an array on my jade page. In my controller I'm passing it as follows: res.render('graphics/index', {namesClient:JSON.stringify(namesClient)} In jade I'm reading as follows: var names= !{JSON.stringify(namesClient)};...
asked by 22.03.2016 / 14:57
1
answer

Consume REST API in Node.js + cURL

I know there are several packages in Node to consume REST API but I need some packages that use cURL . For some reason (which I did not discover) I can not authenticate with existing ones. I've tried link and link .   ...
asked by 11.11.2015 / 10:27
2
answers

Form for HTML file Node.js

Hello! I want a help here: I want when someone writes something in an HTML form, with node.js , I can save this information in a text file with createFile. I do not know much about javascript, please help: /     
asked by 18.09.2015 / 22:07
2
answers

Sum of number of records per year and month

I need to generate a Json file that will feed a graphic. I need to load the following information. I have a form that receives date (dd / mm / yyyy). My chart shows the number of visits per year x month. I make the following conference in...
asked by 01.09.2015 / 19:43
1
answer

Mongodb and Redis on the same server

I am planning a system that uses Mongodb for reading data and Redis for session sharing between PHP and Nodejs. Is it a problem to have both Redis and Mongodb running on the same server, since both store data in memory?     
asked by 04.12.2014 / 00:44
1
answer

How to configure Nginx for nodejs and php?

I'm here trying to set up a basic server on digitalocean, where I wanted to access mydomain.com when it redirected to the program on nodejs + express running on port 3000 and when accessing mydomain.com/blog redirect to / var / www / blog where...
asked by 08.10.2014 / 19:49
1
answer

Validate path nodejs

Hello, I'm developing a file manipulation system, and I just want to be able to manipulate folder with an absolute path eg /opt/file . In other words, I can only create / edit / delete folders on this path. I want to validate that the start...
asked by 11.12.2018 / 21:57
1
answer

https.request does not send body if it is the method DELETE

I am making a request to make a DELETE , and I have a problem, when ordering, bodyParams is not passed. Has anyone ever had a similar problem? On the other hand I'm using the expression req.body and req.query . Ne...
asked by 27.12.2018 / 15:14
1
answer

How to run Node.JS in OpenShift and Locally

How to run Node.JS in OpenShift ( link )? openshift URL: link GitHub: link How to run NodeJS locally, it runs on localhost IP (127.0.0.1:port) but over live IP it does not connect, how to connect?     
asked by 22.06.2014 / 00:01