Questions tagged as 'node.js'

1
answer

NODE.JS 'ConnectionError with MSSQL

This is the first time I work with javascript and node.js. I have no idea what the error might be and how to make the connection, my problem initially came up here: link . I have the following simple code that connects a node server to a...
asked by 23.10.2018 / 22:32
1
answer

Is it possible to rewrite any code that uses pointers (C #) without using pointers in Node.js?

Is it possible to rewrite any C / C # code that uses pointers in a way that does the same thing without using them? My fear is more complex codes. The simple ones I believe do not have difficulties to rewrite. How could I replace pointers...
asked by 27.10.2018 / 08:46
1
answer

Uncaught Error - Sending email using nodemailer and Angularjs

I have been breaking head for some time trying to create a page of contacts where the user through the page can send an email. I am new with node and so I have had some problems. At the moment I can not get my application to recognize nodemailer...
asked by 08.10.2018 / 19:08
1
answer

TypeError: this._connection.open is not a function

I'm doing activity to learn about NodeJS and MongoDB, and during the project, I have the error below: TypeError: this._connection.open is not a function As I am still in the learning phase, I could not understand it well, but it seems to me...
asked by 30.12.2018 / 01:01
0
answers

How to use Electron + RobotJS.io

I have the same problem with this unanswered question as before: link I need to connect the robot.js ( link ) with Electron You need to take this step by step here: link I think I'm doing something wrong My electron is 4.0.0 "devDepe...
asked by 30.12.2018 / 18:10
1
answer

How to configure Node Express in Angular project 6?

I'm about to send a simple project that is working perfectly on my local computer, and I need to send it to the Heroku server, so it's necessary to configure a file that will simulate the Node Express in the Angular, project that I performed wit...
asked by 06.09.2018 / 13:42
0
answers

How to redirect user to the login screen when he returns the page through the browser nodejs

Good afternoon, I'm having a little problem ... I made a simple login app using express and nodejs, it logs quietly and displaces, but when the user shifts and returns a page from the browser, do I redirect it to the login screen? //Securi...
asked by 05.01.2019 / 19:37
1
answer

How to make a script in pug engine

I'm trying to make a script that contains a function in the pug engine, but I can not get it to call when the user submits the form, can anyone help me? Here is the code: html head title= message script. funtion validator(){...
asked by 15.08.2018 / 15:09
2
answers

Return only some JSON fields in the request response (Nodejs + Mongoose)

exports.listarProfissionais = function(request, response) { if (request.get("Authorization") == "test") { ProfissionalSchema.find({}, function(erro, profissionais) { if (erro) response.json({"erro":...
asked by 15.02.2018 / 02:07
1
answer

NodeJS, express, browser does not find files

Good afternoon, I did an API with Node and consumed it with React, in development environment, it works OK because I started one independent of the other, but in production I'm trying to deliver the static files compiled by React to the Node. 3...
asked by 16.02.2018 / 20:50