Questions tagged as 'express'

0
answers

How can I detect the screen size by the server?

I'm using a Node.JS server and would like to know how you can do the following. If you notice, the GitHub 404 Error page appears on devices with larger screens, but we enable the mobile device emulator through the developer tools, the page...
asked by 11.03.2018 / 21:22
1
answer

Save form with NodeJS and MySQL

I am a layman in the world of Node.JS and I am developing a form in which the number of fields is dynamic, ie there is a button that calls a function in JavaScript that is adding fields according to the user's need. My problem is to capture t...
asked by 06.03.2018 / 19:19
1
answer

Requesting Application / PDF generating file with wrong information [AngularJS + NodeJS]

I have a totally Restless AngularJs + Node (Express) application. The back-end serves only to validate requests and route to other applications, which have business rules. At the moment, my front sends a request to generate a pdf, something l...
asked by 17.02.2018 / 01:22
0
answers

Error Can not read property 'toString' of undefined

I'm creating an application using Express , but I'm facing this error: ➜ Futiba git:(master) ✗ node index.js ➜ [ Server ] Online /home/akira/Downloads/Futiba/node_modules/mysql2/lib/packets/execute.js:57 var str = this.parameter...
asked by 02.02.2018 / 15:39
1
answer

EJS include dynamic

Using Express 4 and EJS template engine, I came across the following: Let's say I have the following structure: meu_projeto/ +-- server.js +-- views/ ¦ +-- layout.js ¦ +-- admin/ ¦ ¦ +-- index.js ¦ ¦ +-- blog/ ¦ ¦ ¦ +-- in...
asked by 10.01.2018 / 16:08
0
answers

Is there an environment for Nodejs cloud development?

Study at a college that has not yet ratified the nodejs on the equipment. However, where can I find a cloud environment to develop my nodejs and expression applications?     
asked by 06.12.2017 / 15:31
1
answer

O generates error Can not set headers after they are sent, is running 2 times

When the validator returns an error to API to, when I do not have a return to an api error it works normal. function alterar(req,res){ validator.validaValores(req.body,(err,data) => { if(err){ console.l...
asked by 04.12.2017 / 13:29
1
answer

How to use DataTable Plugin (Jquery) with Node.js

I'm working with node and express and need to populate a table with information that comes from a SQL database. I run my code on page get like this: app.get('/Home.ejs', (req, resp) => { SQL_Server(Seleciona, (rec) => { resp....
asked by 24.11.2017 / 16:40
0
answers

Page is not rendering

I'm setting up a web application using Keystone JS. I configured some routes, and views, and also set up a "virtual store" structure to add and extend sightseeing tours. The problem, that due to some configuration, the site is not renderin...
asked by 06.11.2017 / 17:59
0
answers

Mysql module executing wrong script - Node Js

I'm developing a simple persistence system for customers, products and sales. I made an API using the MySQL expression and module, but something strange is occurring and I really have no idea what it might be: I have this route: app.pos...
asked by 15.11.2017 / 19:18