Questions tagged as 'express'

1
answer

How do I display the table data (HTML) of a database through JSON Express?

Hello! I would like to know a way to present to the user in an HTML table, data stored in a MYSQL database with connection through JSON Express. const express = require('express'); const app = express(); const bodyParser = require('bo...
asked by 03.11.2017 / 06:07
1
answer

Use javascript inside EJS file to display information from an array

I'm trying to display within an EJS / html file the values of an array that are sent from the server, but I'm not getting it. I know that to show the value of a variable inside an EJS file all I need to do is put the variable name inside the...
asked by 11.10.2017 / 06:28
1
answer

What is the best / most efficient way to send data from a view to a route using NodeJS and Express?

I am a beginner in NodeJS and am responsible for a project in this tool. I'm using the "EJS" engine to create the views. I created a form to send the information entered by the user to a route, on this route I want to process the information and...
asked by 09.10.2017 / 03:40
0
answers

Error: ORA-01461: can bind to LONG value only for insert into a LONG column

I'm getting this error in Oracle.    Error: ORA-01461: can bind to LONG value only for insert into a LONG column When running the code below that the error is displayed, I would like to know how to solve this problem in Node.js. The CO...
asked by 11.10.2017 / 20:31
0
answers

Connection Cluster for MS SQL Server

I need to create a Connection Cluster for MS SQL Server. Here is an example I made in MySQL: var mysql = require('mysql'); var db_cluster_config = require('./dbMysqlUtils').cluster_config; var mySqlDB = function (config, logConfig) { t...
asked by 12.09.2017 / 21:22
0
answers

Data + duplicate Images upload on nodejs!

I'm starting now with NodeJS, and I'm testing an example that saves data along with an image upload. It is working, but the image is duplicated. I wanted to know where the error is, and why: var express = require('express'); var app = ex...
asked by 08.09.2017 / 23:04
1
answer

APP nodejs: prevent logs in the terminal window

I created an application in Nodejs with Express, and when I put this application to run (with npm start ), logs appear in the terminal window where I am connected to each page that I access from my routes. Is it to be like that? Is it poss...
asked by 01.08.2017 / 20:15
1
answer

Reloading the page in Express / nodejs

I created a new project with Express and Nodejs, where I defined a "/ status" route. Each time this route is accessed, you should run a routine in the /routes/status.js script. Example: If I run an F5 in the browser with the address ht...
asked by 20.07.2017 / 00:19
1
answer

I can not edit in CRUD - NodeJS + Express + MongoDB

Following: I started literally today working with NodeJS + Express + MongoDB and as an exercise I started with the famous CRUD (Create, Read, Update, Delete). I was able to do almost anything but edit, I'm really "beating myself" to solve,...
asked by 21.06.2017 / 03:13
1
answer

res.redirect does not redirect on expressjs

I am nodejs along with expressjs and in submitting a form a request is made on the server, which, after being treated, redirects the page: ... Post.create(doc, (err, post) => { if (err || !post) { return res.json({...
asked by 27.06.2017 / 02:19