Questions tagged as 'node.js'

1
answer

Docker and Nodejs

I have an application in NodeJs and I need to configure the architecture of this application, I'm new to Docker and I need to create some containers for this application, the application should have the following configuration: -- Contai...
asked by 25.10.2016 / 20:29
1
answer

Start nodejs on Azure

I have a problem to start the nodejs on the azure server, I already configured everything right and the site is already in the air, however I have a chat on node, using socket.io, see the code below (index.js): var express = require('expr...
asked by 24.10.2016 / 14:39
1
answer

Postgress Transaction in NodeJs

I want to encapsulate my SQL execution in the Postgress database. My initial desire is to call a method to execute a specific query and another method to execute a multi-query transaction. exports.executaSQL = function (select, listaParametros...
asked by 25.09.2016 / 21:21
1
answer

Reuse of connections on Nodejs + Mongoose

I'm now starting with Node and I used Mongoose to make my database connections to MongoDB. I put 1 log in my application, every time I open the connection it will print in this log. What happens: Every time someone calls my URL, my Node appli...
asked by 12.08.2016 / 22:06
1
answer

curl + HTTP Server Nodejs

Good morning! I created an HTTP server using nodeJS as follows: var express = require('express'); var app = express(); var bodyParser = require('body-parser'); app.use(bodyParser.urlencoded({ extended: true })); app.post('/', function(r...
asked by 21.08.2016 / 15:26
1
answer

Cut audio with javascript

I need to cut an audio on the client-side and send the "cut" bytes to the NodeJS. It's possible? How can I implement?     
asked by 25.07.2016 / 17:24
1
answer

Problems NodeJS and MySql

Hello I'm having problems with over connection with node-mysql2 using a connection pool. I would like to know if there is a better implementation practice, and what is the best driver to use with nodejs and mysql ? Note: M...
asked by 04.05.2016 / 22:34
1
answer

How to include a regex in the parameters of an Express route?

In a project I'm doing I want to point a specific route to a controller. In a simple case of a route with parameters I would do so: app.get('/:lang/:activities/:activity', require('./routes/activities')); But in this specific case the ac...
asked by 28.05.2016 / 16:19
1
answer

Route configuration error on NodeJS with Express [duplicate]

I have a problem when starting NodeJS, similar to this post this link but did not have more feedback from those who asked and the solution presented in the answer did not help me either. The example is from a book, from Code House, and ar...
asked by 11.01.2016 / 20:52
1
answer

How to call the bootstrap module in html page in a Node project?

I'm using Node and I've downgraded the bootstrap dependency, but I'm not sure how to call it on the index.html page to use the bootstrap.min.css file , what should I do? I have the following directory structure: ----aprendendo ---- c...
asked by 23.01.2016 / 20:20