Questions tagged as 'node.js'

2
answers

Upload localhost application to online subdomain (hosted on my computer)

I've always picked up everything related to servers and stuff. I'm running an application that uses the famous nodejs , and my hosting does not supports it. So just for online testing I wanted to make my application "locally localized", have on...
asked by 10.03.2014 / 05:15
1
answer

Is the Node server the only option to support the maximum level of requests in an application?

For an application project that will need to support a huge amount of requests on the server such as an e-commerce portal on the day of black friday or the server of a game developer on the first day of launching an ultra-long-awaited game t...
asked by 18.10.2018 / 18:00
1
answer

Regular expression REGEX HELP

I have an array on the server in Nodejs, I'm going through html files and need to return the value that is in the middle of the span tag using a regular expression how would it look? { < span class="filteredAds"> de teste< /span>,...
asked by 28.01.2017 / 03:49
1
answer

NodeJs return function - Mysql query

I am not able to return value in the function, I know it is wrong, but I have tried several times without success. The query is being performed and brings the password, the problem is to return this value to whoever ran the function: function...
asked by 11.11.2018 / 18:02
2
answers

How do I configure an SSL certificate for an application that runs in Express?

How to set up an SSL certificate for an application that runs in Express? I'm trying to configure the Express server I created, to pass the SSL certificate and go from http to https. I have read the Express documentation, but I can not fin...
asked by 25.07.2018 / 17:34
1
answer

Concatenation with Virgula and plus sign

I'm studying nodejs, and doing some testing with some native modules of the node I came across the following statement. To print free memory on your computer: const os = require('os'); console.log('Memoria Livre: ', os.freemem()); This...
asked by 21.08.2018 / 18:25
1
answer

How is a NodeJS application distributed to client?

I'm taking a look at NodeJS and I had a question about its distribution. Assuming I have a company, and I use Express / NodeJS to create a simple REST service for my main application. To install this server on a client, would I need to instal...
asked by 09.06.2018 / 19:58
2
answers

How do I upload my Node.js project to Heroku?

I have a project that uses Node.js, Websockets, Socket.io and HTML5 running in my internal wireless network. I want to put it public using Heroku. Please tell me the steps to follow so that I can reach my goal.     
asked by 27.05.2014 / 22:26
2
answers

undefined is not a function in Node.js using Mongoose

I know that this error can have several causes, but I can not know so far. I have a function to save a Document in my MongoDB and I am using callback for this. The code is executed until the new document is saved, after that I have an error. The...
asked by 22.07.2014 / 20:39
1
answer

I want to "" in the numbers of my JSON

I have a script in node.js that takes json of a site that comes in this format: {"nome123":123.4,"nome213":231.4."nome123":123.4} I want to quote the numbers and leave it like this: {"nome123":"123.4","nome213":"231.4","no...
asked by 22.08.2017 / 12:21