I want to do a password verification using express and mongoose.
All right until the part where I check the password, I just can not access that value of my document.
This is my function:
function iniciar_sesion(req, res)
{
let usu = n...
Hi, I'm using node with express and handlebars but when I try to render the view, the error mentioned appears.
Error: Failed to lookup view "home" in views directory
"/ home / joaquin / workspace / nodejs / EasyRcu / views" at
EventEmi...
When I enter localhost: 3000 in chromium redirects me to google.es and I can not avoid this behavior, I have investigated what can be caused and I do not give with a solution.
In mozilla it does not happen to me.
My system is ubuntu 18.04, I...
I am working on a project with Javascript, Node.js and Express.
I'm trying to do all the user logic but for some reason it does not want to work. The error that postman throws at me is this:
<!DOCTYPE html>
<html lang="en">
<...
Alright, here I have a code where I have my Express server, the connection to the database and apparently everything works fine.
const express = require('express');
const path = require('path');
const cookieParser = require('cookie-parser');
c...
I am modifying the delete function in a crud. Originally taskID was a single ID to be deleted; while in my program it is an array of multiple IDs. I do not know what the line of code with mongodb or mongoose would be like to eliminate all the ta...
I try to add data to my Array by mongose but nothing happens, in the DB continuous same, I can not change it.
Model
Dao
DB
No matter how many times you run, it does not change, it is no...
Good morning I need to pass parameters to my an Express app.get function from a res.render. The truth is the first time that occurs to me and I have no idea how to do it.
In this line of code should pass a parameter;
'res.render("usuarios",...
good morning.
I have the following collection in mongoDb:
{
"signupDate": "2018-11-22T19:14:02.047Z",
"_id": "5bf700269e5b59276885eda5",
"userName": "pruebas",
"email": "[email protected]",
"password": "abc1234",
"interests": "{\"followEmai...