Questions tagged as 'nodejs'

1
answer

Update a document with mongoose

Greetings community.! I'm making a small application using node and mongoose and I want to update a specific field of a document ie: I have a document called Libro with a property ejemplares_disponibles of type...
asked by 21.08.2017 / 18:28
1
answer

how can I do a report grouped by rows in angularjs with ng-repeat

How can I do to have a result like the second table?    Appointment in block   This is my json [{id: "211", Pedido_id: "50", Producto_id: "17", Proveedor_id: "3", Cantidad: "25",…},…] 0 : {id: "211", Pedido_id: "50", Product...
asked by 24.07.2017 / 01:29
1
answer

XAMPP with Node js

I need help, I have a project with socket I am doing the socket with node js, but the node creates a server I would like to use the server to xampp so that the requests from the client reach the socket. How could I configure this so that I exit...
asked by 24.08.2017 / 01:27
1
answer

Redirecting login in nodejs with express

I'm starting with node and express, I would like you to help me with re-addressing problem after login, I do not understand what I could be doing wrong. The code that I have written is this way: This is the routing index file router.get(...
asked by 21.07.2017 / 21:44
1
answer

Error with Meteor project "Error: EPERM: operation not permitted, unlink"

I imported a Meteor project and I wanted to open it from another computer, by running the meteor command on the project route I get the following message Error: EPERM: operation not permitted, unlink 'C:\Users\Emery\work\meteor\score-keep\.m...
asked by 23.07.2017 / 20:08
1
answer

Registration of MySQL records with NodeJS (Backend) that does not enter "Success" and hangs. That could be happening?

I expose the code to see if someone can help me HTML code with the button that calls the function: <div id="btn_crearcurs" class="btn_curs"> <a class="btn btn-warning btn-lg btn-block" ng-click="crearCursos()">Crear...
asked by 16.08.2017 / 08:56
0
answers

Error saving multiple select

I have this ajax $(function() { $('#asignarConteo').on('click', function(e) { $('.widthSelect :selected[value!="0"]').closest("tr").each(function() { var ar = $(this).find(".iarticulo").text(); var u...
asked by 27.07.2017 / 15:58
2
answers

Run java project with node-jre module

I am developing a node application from which I need to execute java code. I am using the module: node-jre ( link ). The example that comes on the page (Hello.class) works well with the code that comes on the page (I include it here) but c...
asked by 14.07.2017 / 11:27
1
answer

Express middleware Login

I would like to know how I can make the user after login can not return to the login page? I am using Passport.js I can register and login, What I want to achieve is that if you are authenticated and return to login, redirect to / profile....
asked by 26.07.2017 / 03:33
0
answers

Problem TypeError: tags.setArticulos tags is not a function

I get this error when I try to add a relationship from postman :    TypeError: tags.setArticulos tags is not a function This is the code I use: var db = require('../relations'); var articulos = db.articulos; var tags = db.tags; var ex...
asked by 20.07.2017 / 23:52