Questions tagged as 'express'

1
answer

I can not read a data inside an array within a function

I'm stuck a while ago with a task that I have to do. The objective was to make an api rest with an enpoint to objeter data and another to post them. So far, everything works, but now I must put a condition to that post, which depends on my funct...
asked by 28.08.2018 / 21:43
1
answer

Does anyone know how Dinamic could make a Slider with Nodejs - express - mongodb?

<div id="myCarousel" class="carousel slide" data-ride="carousel"> <!-- Indicadores --> <ol class="carousel-indicators"> <li data-target="#myCarousel" data-slide-to="0" class="active"></li> <l...
asked by 29.08.2018 / 02:09
0
answers

How to show different content to each user of my web app? MERN stack

I'm trying to make a voting app where you can only vote once, for this I collect the ip of the users who vote and then compare these saved ip with the one of who is using the app (to know if I already perform your vote) and so show him one thing...
asked by 22.08.2018 / 19:58
0
answers

Expressjs and handlebars, I can not get the logeado user ID

I'm trying to get the id of the user who is currently logged in, but I can not find a loop and it does not recover the id of the logged-in user, in order to edit a comment as long as it corresponds to the one who did it and to the user that is c...
asked by 11.08.2018 / 09:27
0
answers

sha256 hash with NodeJs and Symfony2.8

I'm trying to migrate my backend from Symfony 2.8 to NodeJs(ExpressJs) and right now I'm trying to use the same login and for that I need to compare the password encriptadas . To get the password (encrypted) and be able...
asked by 11.08.2018 / 15:18
0
answers

Why do I get this error? Cast to ObjectId failed

I am working with MongoDB and made this a%% share% correctly with and I get this result: { "ok": true, "mensaje": "Petición realizada correctamente", "folios": [ { "folioLineas": [ {...
asked by 08.08.2018 / 19:43
1
answer

Email with points is not inserted in the database

Currently the project is developed with angular 5, express and a SQL database. When entering an email with points in its structure (for example: [email protected]) it does not enter them into the database. This is my code: add : func...
asked by 03.08.2018 / 00:47
0
answers

Angularjs 1.6 with backend node js does not show data

On the frontend I wrote the following code <table class="table table-condensed table-striped table-hover" id="example" > <tr ng-repeat="item in $ctrl.entity"> <td class="acciones" data-title="'Acciones'">...
asked by 19.07.2018 / 03:59
1
answer

Trigger does not run

I am using the express framework to learn how to create a simple resample with node and mysql and I have the following code: router.post('/CrearUsuario',function(req,res,next){ postData = Array() postData.push(req.body.primerNombre);...
asked by 26.07.2018 / 23:36
1
answer

How can an express api be used only for projects on the same server? (IP)

I have a project on a VPS server and in the same api running with Node and Express, it is accessible from outside and inside the server without problems, but I would like that this api could only be accessed by pages or app running on the same s...
asked by 22.06.2018 / 07:01