Questions tagged as 'node.js'

2
answers

Validating invoice closing for purchase type and selling JavaScript and submitting for an api

I am a beginner and I locked in the invoice closing validation. I built a list in this format: [ date: '2017-5-9', value: '59.99', type: 'credit', typePag: 1 }, { date: '2017-12-17',value: 'R$ 151.08',type: 'debit', typePag: 2 } ]; W...
asked by 31.03.2018 / 05:12
0
answers

Node fs.js running in HTML

Hello, I need to use the fs function of node.js but I'm encountering errors. When I run using node use_fs.js it runs and works perfectly. However when I put it inside the html it always says q require is not defined. I know that fs is a core fun...
asked by 28.03.2018 / 01:20
1
answer

Error GraphQL with Sequelize

I'm having an error in the return of a Mutation . Apparently it can not read the id field, but the object I'm sending to GraphQL has this field, and since I'm new to GraphQL I did not understand what the error means. The error: { "e...
asked by 28.02.2018 / 22:26
0
answers

Firebase function nodemailer Office365

I'm using the firebase function to trigger the nodemailer and send an email. Using gmail I was successful, but with Outlook365 it does not work. In the transporter I do it this way: var transporter = nodemailer.createTransport(smtpTransp...
asked by 09.01.2018 / 14:00
0
answers

How to make a Docker image of a Node app that uses private repo that requires ssh

Following this guide from the Node.js site to create a Docker image for a Node application, everything succeeds except when you have a private repository for a certain npm package, like the following package.json snippet: "dependencies": {...
asked by 01.12.2017 / 02:12
1
answer

Divide text into parts

I need to get a specific piece of a .txt file that is between <tag> and </tag> . But I need to get all the lines where it happens. Example: <tag1>titulo</tag1> <tag2>subtitulo</tag2> texto....
asked by 22.11.2017 / 19:38
0
answers

How to install npm on Heroku server?

Greeting for all, Recently I sent a Laravel project with VueJs to the Heroku server, and I noticed that it did not recognize my App.js file where the VueJs methods are located, that file is in the public folder, so there was no reason not to...
asked by 29.10.2017 / 12:12
0
answers

What are the main design patterns in NODEJS for Web development? [closed]

I'm starting my studies on Nodejs and need to know the main design patterns for Web Development on Nodejs.     
asked by 13.11.2017 / 20:38
1
answer

What are the implementation differences between the Browser console and the NodeJS console?

Yesterday I was using a MooTools class in NodeJS and I encountered strange behavior in console.log of NodeJS. The code works beautifully but the console does not show what I know is there. For example doing: function FN(nome) { t...
asked by 07.04.2015 / 08:52
0
answers

How to process a JSON in the event of a request-promise failure?

I have 2 microservices, one in NodeJS and one in Spring. The NodeJS contains the event domain (parties, birthdays, etc.) and the Java user domain. When querying the NodeJS event endpoints, I also query the user endpoints and add the equivalen...
asked by 28.10.2017 / 20:36