Questions tagged as 'node.js'

0
answers

Doubt on an error node.js

I'm starting to do projects with node.js, but I do not understand why my code is not generating the view, and I'm not even storing the data in sql. function Funcionarios (connection) { this._connection = connection; } Funcionarios.prototype.g...
asked by 01.03.2018 / 20:41
0
answers

How to run the same JavaScript function in browser and server?

I'm trying to use the TrackingJS library for face detection in an application. Currently my application using Multer uploads an image (I would like to do several, as I am using .single because it can not perform the detection by the local and se...
asked by 01.03.2018 / 04:28
1
answer

Softphone in JS. Telephony Server

I have a Fortics telephony server. I am currently dialing for a physical (or not) extension within Salesforce CRM through a GET service. However, we saw the need to keep the links inside the platform. There is software called Zoiper, wi...
asked by 27.02.2018 / 13:56
0
answers

Tickets using Nodejs

I need to generate Itau tickets and I have my entire Stack in Node, I'm not in the mood to install apache, iis or jboss just to generate tickets. Has anyone ever gone through this? An integrated solution would be interesting, but at this poin...
asked by 27.02.2018 / 18:53
1
answer

Open CSV file and read its contents

I have the CSV file information in the console.log of the backend, I would need to access this file and read its contents, any tips? This is the back-end code snippet that receives the file: exports.anexo = function(req, res){ var...
asked by 27.02.2018 / 12:51
1
answer

Receive and send value with NodeJS

How to receive inputs with nodeJS and send a value to a particular element of the page? Example: const fs = require('fs'); const http = require("http"); http.createServer((req, res)=>{ fs.readFile('index.html',(err, data)=>{...
asked by 24.02.2018 / 15:31
0
answers

Mongoose saving date with previous day

I have a calendar schema that has the date field: const mongoose = require('../config/db'); const AgendaSchema = new mongoose.Schema({ nome: { type: String, require: true }, local: { type: String, require: t...
asked by 01.03.2018 / 15:54
0
answers

Generate Json File from Javascript values - REST and NODE

I'm trying to create a form data reading routine HTML and, from the value of the input fields, generate a JSON file with NODE JS (create a .json file, it is not translate to json ). I also want to implement the...
asked by 23.02.2018 / 18:40
1
answer

Error installing exp via npm

Error installing exp via npm Expo is a set of tools, libraries and services that let you build native iOS and Android apps by writing JavaScript. ERROR! npm install exp -g Even installing with sudo and everything else, it continue...
asked by 22.02.2018 / 18:40
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