Questions tagged as 'node.js'

1
answer

Mongoose - Single object in an array

I'm new to MongoDB and Mongoose, I'd like to ask a question. I would like to store multiple objects in an array, and the object must be ONLY ONLY in that array, based on a string. See the example below: var list = { name: "List 1", reci...
asked by 31.05.2016 / 15:35
1
answer

Is it possible to use the cord with the nodemon?

I'm starting to study the cordova more but every time I need to use the cordova run browser To upload the server and test the app, with node I use the nodemon to leave the server updating without having to reboot, someone knows so...
asked by 20.02.2016 / 03:25
1
answer

I can not publish my MEAN app on OpenShift

I've done everything that seems right. I changed the local variables to process.env , but when I commit and send I get this output: Pushing to ssh://[email protected]/~/git/pontotec.git/ remote:...
asked by 12.02.2016 / 05:45
1
answer

Error installing Cordova Windows 8.1

I'm having trouble installing the cord on my machine, I followed the steps in the Own Cordova but it was not working, it is giving error as follows:     
asked by 19.01.2016 / 21:03
3
answers

Query mysql with subquery in NodeJs

I have the following structure in the following tables. partner (idPartner, name, email, phone) example Tag partner (old id, tag) What I need to do, a select in the partner table and make a is in the result and query the tableTag partner b...
asked by 14.04.2016 / 22:59
2
answers

How do asymmetric signatures work in JSON Webtokens (JWT)?

Recently I started to study the possibility of starting to use JSON Webtokens in my projects, given its advantages. From what I understand, there is a symmetric and an asymmetric way of generating the signature for the tokens. The symmetric seem...
asked by 20.12.2015 / 01:52
1
answer

req.session on node.js

I would like to know how the basic operation of the req.session structure of Node.js. Is it native to Express or Express-Session? Please help me understand more about sessions.     
asked by 28.08.2015 / 14:43
1
answer

Error creating project with Java with JHipster

I'm creating a project by JHipster in windows 10. When executing the yo jhipster command and selecting the tools that I will use, I get the following error in creating the project: C:\Users\jackson\teste\node_modules\karma\node_modules\sock...
asked by 23.10.2015 / 14:50
1
answer

Find in mongoose bank by Nodejs

I'm trying to access the mongoose database by doing a find on the nodejs. In mongoose, I have the following data: Client:{ name: {type: String, trim: true, required: false, default: ""}, address:{ country: {type: String, trim: tr...
asked by 20.07.2015 / 18:45
2
answers

Edit NodeJs data

I have a Crud NodeJs where I can add data to the database, but now I wanted to edit this data and the tutorial I follow is a bit old, in this tutorial editing is done by PUT my JADE page looks like this: extends ../layout block content...
asked by 03.07.2015 / 20:27