Questions tagged as 'node.js'

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
0
answers

Apache Container + Nodejs, how to create?

Upload a container with Apache + PHP , but I need to use Laravel-mix strong> and nodejs . Everything works ok, however, at a given time I've seen that the container has restarted, can this relate to my approach to all together as below?...
asked by 07.10.2017 / 22:53
0
answers

PayPal redirection

var create_payment_json = { "intent": "sale", "payer": { "payment_method": "paypal" }, "redirect_urls": { "return_url": "http://localhost:15000/api/ReturnPayment/retornoPayPal?id=" + params.orderNo, "cancel_url":...
asked by 19.10.2017 / 20:04
1
answer

req.body is coming empty when calling api in postman and application

I'm trying to use an api in nodejs but I can not pass the parameters the req.body is empty and I can not identify the problem var express = require('express') var app = express() var bodyParser = require('body-parser') var core_use = requir...
asked by 20.10.2017 / 00:50
1
answer

Routes Node.js with Angular.js

I'm starting now in the development with node and I came to the following doubt: much is talked about mean stack , but how to do the mapping of the routes using node and angular? Which one do I use to do the routes? Could you give an examp...
asked by 09.10.2017 / 14:56
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
1
answer

Error while running the "npm run prod" command in Git Bash to give Build in an Ionic 2 project

I'm having a project ready for publishing, which was created with Ionic 2 using the Google Firebase API, but when I try to build the project for production, with the following command in Git Bash: "npm run prod" is displayed an error I could not...
asked by 20.10.2017 / 20:32
1
answer

Passport-local / I do not understand the structure of the function

I'm trying to implement the authentication system on my platform using Passport, passport-local and passport-local-mongoose. I was able to apply login authentication: app.post("/login", passport.authenticate("local", { successRedirect:...
asked by 02.10.2017 / 03:20
1
answer

Error inserting data in postgree: column "test" does not exist

In% basic%, I'm getting the following node error: "Erro na inserção dos dados { error: column "teste" does not exist at Connection.parseE (C:\Users\SUPORTE\Desktop\NodeFINAL\appFinal\app1\nod modules\pg\lib\connection.js:546:11) at Co...
asked by 27.09.2017 / 16:13
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