Questions tagged as 'express'

1
answer

multiple query in nodejs

I want to show a post and the respective comments for this I have 2 tables in mysq l a " post " and the other " comments " Use mcv model view controller with nodejs and express . model.js getOne(id, cb) { conn.que...
asked by 13.02.2018 / 20:57
0
answers

Security with NodeJs, Express and MySQL

Recently I started to develop a web system using NodeJs, Express and MySQL. In broad strokes, my system consists of an administrator panel and a backend to which mobile phones communicate through apis. The part that I need is the security one, I...
asked by 13.02.2018 / 14:53
1
answer

Replace one template with another in nodejs

I have a doubt .. Attach a button to close session. You already create the event and everything is fine. But how can I tell the server to send me the welcome page? Use nodejs server. And in the front javascript ... The welcome page is a...
asked by 28.01.2018 / 00:25
0
answers

How to show a pug plate

Using ajax request the template to the nodejs server. And show it with the head and the body. To replace the previous ones The ajax request is already made. just do not replace the head of a web page already rendered.     
asked by 25.01.2018 / 17:11
1
answer

How to get a variable sent from the server

My code starts like this res.render ("index", {message: "Hello"}); The question is how to get that variable message in javascript code. Use nodejs as a server. To serve the template use pug. successor of jade.     
asked by 25.01.2018 / 18:44
1
answer

Serve two Angular5 applications in Expressjs

I'm setting up a server with express that I want to serve a rest API and two Angular5 applications. I have a nginx proxy in front of me that redirects the traffic to the express application, transforming http requests to https. The directo...
asked by 31.01.2018 / 18:10
0
answers

does not completely redirect

I have a link, I want to redirect to the Investigation Values list. a(id='add-user', href="/evaluacion/listaEvaluacionesInvestigacion", class='btn btn-primary') agregar los usuarios marcados and the router is router.get('/listaEvaluacio...
asked by 27.12.2017 / 03:07
1
answer

How to send a res.json () that is inside a for loop, using node (express) and ajax

I am working with NodeJS using express with this I have the routes such as POST and GET I connect to bd and make queries in the < strong> app , but I have a question about the following code: function getAllDatabas...
asked by 21.12.2017 / 15:20
1
answer

authenticate with express + react + redux?

Can someone recommend me what is the best way to authenticate with express + react + redux? I'm not sure if I use passport or json token? who has been able to protect api with express!     
asked by 12.12.2017 / 20:53
0
answers

I can not access my api in ExpressJS since Angular generates me errors in which no route concurs

When I access the URL to my Api: Angular service: import { Injectable } from '@angular/core'; import { Code } from './home/Code'; import { Observable } from 'rxjs/Observable'; import { of } from 'rxjs/observable/of'; import { catc...
asked by 01.12.2017 / 19:29