Questions tagged as 'express'

1
answer

Node.js - Function returning the value of the query?

This is the following I tried to search but I did not find any solution, so I tried to create a function in the model of my application that will return the data of the query in the database. This function would be called in my controller which...
asked by 09.08.2015 / 22:50
2
answers

Asynchronous execution problem on node server with Express, MySQL and Socket.IO

I'm developing a project on Node.JS with Express, MySQL and Socket.IO. When the user opens the main page provided by the server, the request must cause data to be read from the database and sent to the client for it to be listed on the page....
asked by 12.08.2015 / 16:27
1
answer

Problem with NodeJS / Express parameter passing

I'm creating my first application in NodeJS and managed to structure the application, connection, directory structure, routes, anyway, everything working fine. Now I've implemented the login system and I've already encountered an error in pas...
asked by 29.09.2014 / 09:01
1
answer

Empty input after submitting form

Hello, I'm developing a login system, but I'd like to improve something. When I register a user, and type their name, address, etc., and make the request of the form, it returns all the empty inputs. Like the GIF below ... Notice in the ab...
asked by 10.10.2018 / 00:11
1
answer

Pass variables on all renders

I have an application using NodeJS, Express (and a few more dependencies). I reduced the application to the file below to explain my question: app.js: // Dependências. const express = require('express'); // Criar a instância do express. le...
asked by 18.01.2018 / 17:16
1
answer

Send data to the client without using an additional url

Hello. What I want to know is the best way to send data to the client and this data will be received through a function (which can be executed in a click). In the example below I will render a page (I am using express in node.js): app.get('...
asked by 09.07.2016 / 21:22
1
answer

Get QueryString with NodeJS

I need to get the QueryString being passed to the server created on NodeJS . I've tried it in many ways but I can not get the and ph parameters. I am a beginner in NodeJS and the code I have is: var express = require('express') ,...
asked by 26.11.2016 / 09:20
1
answer

pass variables to view EJS from different queries

I'm starting with node / express etc. Create a site with the intention of learning and I need help. I have a mysql query that is sent to an EJS view via the code below: app.get('/', function (req, res) { connection.query('SELECT actor_id,...
asked by 14.07.2016 / 07:09
1
answer

Error in FIREBASE + NODEJS: Firebase App named '[DEFAULT]' already exists

I have a CRUD made with NODEJS + EXPRESS using FIREBASE. I add a record normally, but when I add the next, it gives me the error: [DEFAULT]: Firebase: Firebase App named '[DEFAULT]' already exists (app / duplicate-app). If I restart the...
asked by 11.03.2017 / 19:17
2
answers

How do asymmetric signatures work in JSON Webtokens (JWT)?

Recently I started to study the possibility of starting to use JSON Webtokens in my projects, given its advantages. From what I understand, there is a symmetric and an asymmetric way of generating the signature for the tokens. The symmetric seem...
asked by 20.12.2015 / 01:52