Questions tagged as 'node.js'

0
answers

No Access-Control-Allow-Origin header is present on the requested resource. - MEAN STACK

Hello! I need to pass a string to the node and I'm getting the following response from the browser console: Failed to load http://localhost:3003/api/buscarCep: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origi...
asked by 09.05.2018 / 02:42
0
answers

Improve the performance of nodemailer with express (Node.JS)

Well I created an application in Node.js for sending emails via form, to test site I was using FakeSMTP , and the performance was up to speed, but after I "dockerizei" I realized that the return in the sendmail function is taking more than 5 se...
asked by 07.05.2018 / 22:30
0
answers

how to calculate CheckSum 8 Xor node js

Good morning people. I have an example string: var string= >ACK;ID=1206;#01D4; I need to calculate CheckSum 8 Xor so that it returns 2 digits in hex: Answer: 2B Can you help me?     
asked by 07.05.2018 / 16:35
0
answers

Nginx with node and domain

Hello, I am a beginner in node and nginx, I searched about, but I did not find much material, I have a vps where I installed nginx and node, which I wanted to configure for a domain that I own, if you can tell me where to find this information, o...
asked by 10.05.2018 / 21:57
0
answers

Relationship between schemas mongodb

Hello, good afternoon! I need to develop a simple system, but I have doubts. I'm developing with nodeJs. It is a system for shared racing, where a driver, a passenger is registered. And from the driver and passenger, you can then create a race....
asked by 10.05.2018 / 21:17
0
answers

Send data via POST - MEAN STACK

When I pass a null value I get the backend function return, but when the value is not null, I get a bad request (400) error. See what I'm doing, what could be wrong? Error:    POST link 400 (Bad Request)       Failed to load link : In...
asked by 09.05.2018 / 20:11
2
answers

Convert utf-8 codes to unicode

Well, I have a JSON where all unicode symbols like this "★" are in this format: "\ u2605" have some way to convert those codes to the symbols when my program NodeJS read the JSON ? Example of how it is: {"name":"\u2605 Bayonet","pri...
asked by 24.08.2017 / 16:47
0
answers

How to use a form to send data to a .JS file

I'm starting in NodeJS and to practice I'm creating a project where I have a form with some fields, the form is created inside the views folder as teste.ejs . I would like when submitting via POST the infos of these fields would be popul...
asked by 30.04.2018 / 20:43
0
answers

How to resolve the "ENOENT: no such file or directory, open" error in NodeJS

Hello. I have a hard problem solving when trying to run an Ionic project, when I run the npm install command it shows the errors below: npm WARN tar ENOENT: no such file or directory, open ' C:\Users\...\...\node_modules\.staging\rxjs-...
asked by 30.04.2018 / 19:03
1
answer

NodeJs file is undefined

Save Galley! Try to help me please, I'm new to NodeJs and express and I'm not getting the input file in my ejs, when I send the route already arrives as undefined. Server.js file var express = require('express'); var app = express(); var bo...
asked by 01.05.2018 / 02:40