Questions tagged as 'express'

1
answer

In Jade, how can I suppress the error if a variable does not exist?

I'm trying to create a form to create a user, but I use the same form to edit. When I try to create a new user the app shows me an error because in the form fields it tries to get information from a user that obviously does not exist because I a...
asked by 20.08.2015 / 16:53
1
answer

How to find the ExpressJS version?

How do I find out the installed version of ExpressJs?     
asked by 16.11.2015 / 23:04
2
answers

Image not displayed when being listed in Node Js

I am not able to list the images saved in the e node with the express, when I try to list my View does not display the image. My configuration file: module.exports = function(){ //recuperando a biblioteca do express var express...
asked by 29.09.2017 / 19:40
2
answers

Are there BI / OLAP tools for the MEAN.JS platform?

Can anyone point me to a BI / OLAP framework or at least one Chart Engine, preferably open-source, to properly integrate the MEAN.JS or MEAN.IO with SPA SPA - Single Page Application I know keen.io . It is free in low transactional volu...
asked by 19.10.2014 / 22:16
1
answer

Nodejs - How to use external variables in asynchronous functions

I'm starting in node and I still find the concept of asynchronous functions complicated. I'm using js to render templates to email in my application. The prototype is: "use strict"; const nodemailer = require('nodemai...
asked by 04.12.2016 / 23:55
4
answers

Where does JWT store the tokens?

I'm following the following tutorial to create an authentication system using Node.js and JWT: link Following the steps in the tutorial, I can verify that the user is correct and create JWT. However, the token is apparently not being stored...
asked by 29.07.2016 / 00:52
1
answer

Routes in separate files

How do I put routes in separate files? var express = require('express'); var App = express.Router(); var Notas = require('../api/notas'); App.route('/notas') .get(Notas.read) .post(Notas.create); App.route('/notas/:id') .get(Nota...
asked by 31.10.2016 / 13:46
1
answer

Object Not Defined

I'm having trouble with an object in Node.Js with Express.Js. It is reporting the following error. Error: Route.get() requires callback functions but got a [object Undefined] at C:\contatooh\node_modules\express\lib\router\route.js:162:...
asked by 29.09.2015 / 05:51
2
answers

URL with string parameters with angular.js

I would like to know the best way to treat url with string parameters in angular.js. When accessed: www.app.net/nomeDaPessoa/ServicoDaPessoa It would respond to a given route that is receiving nomeDaPessoa and ServicoDaPessoa...
asked by 25.02.2015 / 13:31
1
answer

Security when sending and retrieving data from a URL

Hello, I am learning development and I do not know much about security. I'm doing a web application using Nodejs + Expressjs + AngularJs + MongoDB . I did as follows, the MongoDB data is sent to a URL using the Post...
asked by 21.10.2015 / 18:11