Questions tagged as 'express'

1
answer

How to rotate an angled application with node express

How do I link a login application developed in angular with node and express server. How do I test (pull) the application to the server. The server is running normally on port 3000: var express = require('express'); var bodyParser = require...
asked by 15.08.2017 / 16:34
0
answers

Manage files on the server?

I am making a server using NodeJS and Express and in it I am generating pdfs of reports. How do I manage these files, and when I talk to manage I mean having options like opening the pdf, downloading it and printing it. I am using the pdfMake li...
asked by 31.07.2017 / 14:28
0
answers

Serve custom .js file on Express route

I have a home page for authenticated user that is served by router however this authentication is done via cookie if there is this cookie of "session" (created after user login and defined his path to root) any request other...
asked by 18.07.2017 / 03:26
0
answers

Sharing routes on express

I'm trying to make a generic controller that will provide the basic crud routes, the idea is to extend this controller and be able to add some custom routes that are inherent only to that class. Here's an example: export default class B...
asked by 03.07.2017 / 17:26
1
answer

Return values from module.exports by return

I have the following code that the data is returning right by console.log() var request = require("request"); var myJSON = require("JSON"); function resultado(url, callback) { request({ url: url, json: true }, f...
asked by 01.06.2017 / 18:41
0
answers

Json object no ionic 2

I'm starting with Ionic 2 and Node.js and I'm trying to consume the API I created, but I'm having trouble locating the problem when I try to generate a listing with ngFor from a JSON, so I've read the ngFor needs to a JSON object to work, so I c...
asked by 18.04.2017 / 05:27
1
answer

How do you associate a calculation function inside an express function to use in routes?

With a very big question, I have a function that does calculations of user metrics and I want to put it in an express function to be able to return a JSON and use it in a route, follow the code to use in the routes: / p> const calculate_followe...
asked by 16.05.2017 / 00:56
1
answer

React-router not rendering pages not found correctly

I'm developing an application using React + React-router + Express to render on the server and inject into an EJS view. It is working correctly, but I noticed that by not finding a route like /naoexiste the request falls correctly on t...
asked by 02.12.2016 / 18:05
1
answer

beforeupdate sequelize does not work

I'm trying to make the data update encrypt the user's password, but it simply does not work and does not give an error. Have the following sequelize model. import bcrypt from 'bcrypt'; export default (sequelize, DataType) => { c...
asked by 28.11.2016 / 06:36
0
answers

NodeJS application startup problem in UOL Hosting

Galera, I'm running my application running 100% on my local machine, but when I upload the files to my Node hosting on UOL HOST it does not work on startup. I'm using the same version of the UOL node (4.4.5). The error you have in nodejs....
asked by 14.08.2016 / 07:51