Questions tagged as 'node.js'

0
answers

Problem to send mail with mailtrap using Docker (MongoDB)

I'm studying the development of an API and I'm having trouble using mailtrap to do the test of sending email during user validation. The user is typed in the mongo however he does not send the email and returns the following error: Error: conn...
asked by 15.08.2018 / 21:15
0
answers

Aggregation in mongoDB is not working right

Hello I'm trying to filter some data to render a table in a view here. The template is EJS. What I need to do is: Count how many times an id number appears with a given status. I've been able to count the amount that an id appears, but...
asked by 10.08.2018 / 20:41
0
answers

Error: Uncaught (in promise): TypeError: Can not read property 'name' of undefined

You are generating this error when you enter the page.    Error: Uncaught (in promise): TypeError: Can not read property 'name'   of undefined TypeError: Can not read property 'name' of undefined at   Object.eval [as updateDirectives] (Addmen...
asked by 21.08.2018 / 15:43
0
answers

Function not defined after requiring module

I was creating two separate modules from my main code to keep it organized and easy to understand. So I created a new folder and in it 2 files, index.js and search.js The function of search.js is to retain a function....
asked by 09.08.2018 / 02:56
0
answers

POST in ReactJS with object included, how to do?

I need to make an enrollment for Course Instructors, in which each instructor will have a course. How do I? I'm doing it that way and it's not going: PS.: variable name and email receive a variable in String , already the course va...
asked by 13.08.2018 / 07:13
0
answers

How to give POST in a fetch in ReactJS?

I have an API in nodeJS and a SPA in ReactJ for registration of courses (only with the title of the same course, in a mongo bank), I have already done a function, with fetch, to search the registered courses and is working, but I do not know how...
asked by 12.08.2018 / 16:28
1
answer

Registry is not being sent to the database

When I use 'insert into news set?', to register at the bank, it is simply not registered Model: module.exports = function() { ... this.salvarNoticia = function(noticia, connection, callback) { connection.query('insert into...
asked by 13.08.2018 / 01:16
0
answers

Error: Cors integrating nodejs and Angular 6

I have a problem that I need to address, but I'm not getting any solutions yet. I have an application in NodeJs that I developed in #ExpressJS and I face some problems related to the CORS of the Browser. In my index.js from my node backend...
asked by 15.08.2018 / 07:14
3
answers

How to remove information in a text?

I would like to fetch and extract a string that is between tags. Using only JavaScript with Node. Example: Extract information inside any tag and save to some variable. I'm not sure how to implement code for this. I do not know if I could...
asked by 08.08.2018 / 18:40
0
answers

Node-RED Dashboard - Update switch dynamically

I am creating an IOT dashboard to control some electronics in my home. For this, I'm using NodeRED and the Dashboard. One question I have: My interface has several Switch buttons that already work normally. But I would like to create another...
asked by 08.08.2018 / 03:36