Questions tagged as 'node.js'

1
answer

How to use a Gulp file for production and development?

I was researching how to create a Gulp file that understands how to differentiate when it is for production and when it is for development. I found the plugin below, and would you like to know if this is the ideal way to do this differentiation...
asked by 21.02.2017 / 19:44
0
answers

How to receive an array in the body of a nodejs route

Good morning everyone. I am facing a great difficulty. I started a week of studies on nodeJS, so I'm pretty noob. I have a code that returns an object in json format for me and I would like to create a page that Body would receive this. howev...
asked by 27.07.2017 / 14:32
1
answer

Uncaught SyntaxError: Unexpected token Nodejs

I can not properly link my static / index files, follow the code directory: 'blog / createServer.js' var http = require('http'); var fs = require('fs'); var path = require('path'); var contentTypes = { 'html': 'text/html', 'css': 'text...
asked by 03.03.2017 / 03:30
2
answers

NodeJS error and MSSQL module

Hello, I'm having an error in the MSSQL module of nodejs for connections to SQL Server. The connection is normal, the problem is time to perform the query, the function does not return anything to the callback. Connection code: var sql = re...
asked by 03.02.2017 / 13:48
1
answer

WEBRTC - Socket node.js

I'm developing an application using the following socket system (Using FireBase) for communication: openSocket: function(config) { var channel = config.channel || location.href.replace( /\/|:|#|%|\.|\[|\]/g , '');...
asked by 09.01.2017 / 18:56
0
answers

How to check new fields inserted in a mysql table in real time? [closed]

In my work there is a database where a ratchet system inserts new fields into the table and the NodeJS application needs to check when new fields are inserted. What is the best way to monitor a table in real time? I researched and saw that...
asked by 12.02.2017 / 14:46
1
answer

Referencing a import dynamically

Below I'm defining some imports; import users from './user'; import securities from './security'; import softwares from './software'; I want to be able to access them in the course of my file, but I can only access them dynamically if I do...
asked by 12.02.2017 / 00:12
1
answer

Relate Nodejs modules with Services Angularjs - Electron

Hello, everyone! I am starting a study in electron and in this application I am using angularJS, the detail is that I do not understand much about, and I can not think of a way to use the Node without the server being running, I would finall...
asked by 10.02.2017 / 18:22
0
answers

Sheetjs problem while maintaining spreadsheet formulas when saving

The sheet.js library allows you to create and edit spreadsheets of type xlsx d Open office . Currently I have a spreadsheet that contains 3 pages as shown in the figure below. The DADOS page contains information that wil...
asked by 14.12.2016 / 16:51
1
answer

Use Angular 2 without NodeJS after build

I'm developing an Angular 2 application using Webpack . My doubts are, once you build for production: Can I run this app without the NodeJS ? Can I run the Angular 2 app without any server, right in the browser? If you need to u...
asked by 21.12.2016 / 13:23