I'm starting with Node and I'm creating an application where I wanted to get the current location of the user and with this location I can make comparisons and if possible save in the Bank.
I think it will work this way:
The user will cre...
I have a problem with using nodejs and express, I have never used this language and I do not have much knowledge of it so I will try to be as specific as possible here.
1 I have a webservice rest that returns me purchase orders with several i...
I'm trying to update login data from a firebase user using the Node sdk admin. My code looks like this:
var uid = req.body.uid;
var objectUpdate = {
"displayName": "David Coelho"
};
admin.auth().updateUser(uid, objectUpdate)
.then(f...
I'm working with NodeJS, MongoDB and Mongoose where I'm creating an access permissions system that works with infinite sub-levels. The permissions have the same Schema:
//app/models/PermissaoModel.js
const mongoose = require('mongoose');
cons...
I am creating a small social network and I need to create the share of friendships.
I have two ideas:
A Friendship collection containing the sender, recipient, and response fields and make a populate with mongoose.
Put a Friend o...
I'm using Nginx with SSL and this setting for a service to communicate with the node, when I access the address socket.io usually connects to the server but does not receive the emit or send.
location ~ ^/(atualizaUltimaPosicao|node|socket\.io...
I'm starting in Node.js and I searched a lot about transaction control , but I did not find anything like what I'm used to in Java.
First I'll clarify what I mean by transaction control:
Imagine a complex operation where business logic is se...