Questions tagged as 'node.js'

2
answers

Stop loop in function inside another

Good morning, I'm starting on nodejs. I need to make a function that is called inside the other go back to my loop, however I'm having difficulty with this. Segua down the code I made. From loop to function test2 and from test2 to test3 and from...
asked by 10.07.2015 / 16:59
1
answer

TypeError: ExtractJwt.fromAuthHeader is not a function

I'm having some problems with Passaport.js. When I try to run my api, the terminal returns an error. I went in the file in question and did not find anything wrong. I searched the net, but the solutions I found left the code to what I have...
asked by 17.08.2017 / 19:34
2
answers

Avoid duplicate MySql [duplicate]

Is it possible to avoid duplicates in mysql ? I had to search and nothing fits my case, whenever I try to duplicate it. I'm trying to import this into the table: INSERT INTO profiles (id, rep, gems, plevel) VALUES (id, 0, 100, 1...
asked by 12.09.2017 / 19:52
1
answer

Sum of values Nodejs + Mongoose

I need to sum the values stored in a variable in the database. I have a form and I want to know the total value generated in a variable. Then I did the following: _.each(cliente.data, function (data) { fo...
asked by 01.09.2015 / 14:45
2
answers

How to "start" a Node server?

I installed the Node, created the environment variable ( NODE_ENV ) value development. When I installed and configured, I printed a arquivo.js with hellow world and it worked. Today, I want to start the server, but I can not....
asked by 24.08.2015 / 14:31
1
answer

Hosting for node.js

Good morning, I have 2 applications node.js with mongo, and needed to host them in the same place, one application manages the other, they use the same bank. Is it possible to put them in the same hosting, accessing an application by the acquire...
asked by 14.12.2017 / 12:51
2
answers

How to increase the id in the mongo?

You can do this, every time I create a new user for example he does the auto increment of _id. Starting from 1 and going up to the number of users     
asked by 09.11.2017 / 11:40
1
answer

Decrypt sha512

Is it possible to decrypt sha512? If yes do you have a website with the algorithm or a node package that can tell me?     
asked by 14.03.2018 / 14:04
2
answers

How to install Grunt offline?

I already have Node.js and Npm installed and wanted to know if there is a way to install Grunt and use it offline?     
asked by 04.03.2016 / 01:55
2
answers

Merge two objects with the same ID

I need to concatenate two objects that have the same id . Example: a1: {id: 1, qtde: 2} a2: {id:1, nome: 'teste'} Result: a3: {id: 1, nome: 'teste', qtde: 2} Does anyone know how to do it?     
asked by 16.03.2016 / 21:06