Questions tagged as 'nodejs'

1
answer

How to get a variable sent from the server

My code starts like this res.render ("index", {message: "Hello"}); The question is how to get that variable message in javascript code. Use nodejs as a server. To serve the template use pug. successor of jade.     
asked by 25.01.2018 / 18:44
0
answers

bigquery export table gcs nodejs does not work for me

I've been doing the examples to export a Bigquery table to cloud Storage link , with gcloud , python , it worked, it worked, but Node Js does not work for me, I get the following error: > node test.js /home/nodejs/test.js.js:...
asked by 25.01.2018 / 16:35
0
answers

NPM SASS does not compile imported CSS file

I'm working on a Laravel 5.5 project with Bootstrap 4. When I compile SASS it returns that everything is fine, but the imported CSS file is not being compiled or monitored by SASS. I have this SCSS file that comes by default in a new Laravel...
asked by 19.01.2018 / 19:51
0
answers

Implement Redys gateway in Angular 4 or higher

I'm trying to integrate the Redys payment gateway into a web created in Angular 4 and backend in Node.js. The backend I have managed to work using the package, redsys-polite . The problem is that I do not know how to integrate it with...
asked by 22.01.2018 / 13:13
1
answer

Download a mongo model with NodeJS

I have a Mongo database and I would like, through an API in Node, to be able to download these records in zip, in a CSV or whatever format. Right now I have 501426 records so the find of the model gives me the following error when getting all th...
asked by 15.01.2018 / 16:40
0
answers

bring an image from sql server to android

good afternoon people, the consultation, basically it is, I have an image in a sql server database (varbinary), and I bring it through a json with a restful service done with node, along with other data; when I bring it from the json, I treat it...
asked by 09.01.2018 / 18:23
0
answers

How to send data from a form with fetch help to nodejs server using express

const formSignin = document.querySelector('#formSignin'); formSignin.addEventListener("submit", event => { event.preventDefault(); const formDataSignin = new FormData(formSignin); fetch('/signin', {method: 'post', body: formDataSignin})...
asked by 23.01.2018 / 20:13
1
answer

ReferenceError: timbreController is not defined

I'm trying to generate nodejs code, but it sends me the following error module.exports = { oninit : function (vnode) { this.ctx = new timbreController(vnode.attrs); }, view : function (vnode) { return facturaView(this.ctx) } }; fun...
asked by 23.01.2018 / 21:12
1
answer

How to solve this Error in webpack

This is the error ERROR in ./index.js 1 Module not found: Error: Can not resolve './index.css' This is my index.js import React from 'react'; import ReactDOM from 'react-sun'; import './index.css'; import App from 'App';     
asked by 10.01.2018 / 16:34
1
answer

How to send a res.json () that is inside a for loop, using node (express) and ajax

I am working with NodeJS using express with this I have the routes such as POST and GET I connect to bd and make queries in the < strong> app , but I have a question about the following code: function getAllDatabas...
asked by 21.12.2017 / 15:20