Questions tagged as 'node.js'

1
answer

Passport Session Authentication on Android

I have a web app running with NodeJS, Express and authentication with Passport-JS, and everything works perfectly. Now I'm developing an Android app and I need to authenticate my users using the same API. From what I understand by reading...
asked by 14.12.2016 / 13:05
1
answer

How to maintain multiple connections to postgresql in Node.js?

I'm using Node.js in a task where I need to migrate data between two PostgreSQL databases. The idea is more or less as follows: Connect to Bank A. Connect to Bank B. Return all records of A. Insert all A's Registers not yet present in...
asked by 27.10.2015 / 14:05
1
answer

How to make GET / POST request with Node.JS?

I need to make a request both post and get from a REST API, I wanted to know how to make the request with Node.js? I found some articles on the internet but nothing succinct.     
asked by 01.01.2017 / 04:32
1
answer

Asynchronous function chaining alternatives

I need to make 3% with%. One in each table, and its exact result to use in the%% of% remaining. In the original application, I do a lot of manipulations in the result of each query, which leaves a lot of content, so I summarize my problem in...
asked by 15.07.2016 / 13:16
1
answer

What is Access Token? What's the use?

What exactly is an Access Token? What is an Access Token in an API application? I would like a response to Node.js, but I believe that API creation exists in several languages, so I do not think it is necessary to be just for JavaScrip...
asked by 24.01.2017 / 02:36
1
answer

Main differences between MongoDB and Redis

I'm reading a book on real time applications with NodeJs. The author used MongoDB and Redis to exemplify the use of database with NodeJs. My doubt arose when he used both at the same time, justifying that Redis would be used for data that...
asked by 29.09.2014 / 16:16
1
answer

What are the suffixes of NPM versions and what do they do?

In Node.js environment when we are going to get modules from NPM you can use suffixes to specify versions . For example, in package.json I see many times: "dependencies": { "async": "~1.4.2", "express": "^4.13.3", What...
asked by 05.09.2015 / 22:39
1
answer

Deploy App Node.js on localhost (Production)

I developed an application with Angular + Node.js. The only detail is that there is no centralized server (Node.js), that is, each client will have its version of the server running on your network. Because of this, I had to create ways to i...
asked by 27.02.2017 / 14:14
1
answer

How to split code into multiple modules?

I know that it is possible to separate functions in other Node files, called modules, as follows: server.js var http = require("http"); var servidor = http.createServer(); var porta = 3000; var corpo = require("./modulo-corpo.js"); se...
asked by 07.05.2017 / 03:00
1
answer

The Node in the .NET world would be the CLR or .NET?

Given that Node is a server-side development platform in JS ... and in .NET do we have the CLR (Common Language Runtime) the Node would be the CLR that compiles? Or a framework as .NET, as two import modules I was pretty confused about this i...
asked by 18.08.2017 / 16:32