Questions tagged as 'nodejs'

0
answers

Error creating marketpayment payment preference

I am creating a website that allows you to buy through MercadoPago in NodeJS. Locally and in testing, it works without problems. Now in production, sometimes ( ONLY sometimes ), it pulls invalid_token . As it is on the server side, I u...
asked by 28.04.2018 / 16:19
0
answers

Error saving field in mongoDB

I am creating a REST api with a Node and MongoDB I have a Group model in this way: 'use strict' const mongoose = require('mongoose') const Schema = mongoose.Schema const GroupSchema = Schema({ name: String, team1: String, team2: String...
asked by 16.04.2018 / 23:26
0
answers

error when compiling Sass

Install node.js and the package.json. I do not know much about this, so I ask for help. When running npm run watch-css the log file throws this at me and I do not know how to fix it: 0 info it worked if it ends with ok verbose cli [ 'C...
asked by 21.04.2018 / 22:14
1
answer

Mongo does not connect me to localhost

Hello, I have here all the code of js, I try to do node index.js and it does not connect me to the server, therefore I can not open theft 3t any idea? I do mongod and nothing. //DEPENDENCIES var mongoose = require('mongoose'); var m...
asked by 13.04.2018 / 12:46
0
answers

send information from nodejs to angular 5

I am using "node-dir" a module of nodejs to list the subdirectories and files of a folder, I would like to know how I can send this information to my component in angle 5. My node code is the following: const dir = require('node-dir'); dir.p...
asked by 13.04.2018 / 09:49
0
answers

Problems with function Click on jquery and call function $ get.JSON

Hi, I do not know how to explain my question well, but I will do my best. It turns out that I have created an API in node.js and I want to interact with it through jquery. It's a simple case where I have to do a search. If I directly implemen...
asked by 18.04.2018 / 00:24
2
answers

Subquery within a javascript and mysql callback

Good to all I try to get the details of a foreign table after making a query, I do a for cycle to go through all the results of the main query and make a sub query with the data of the foreign id, this from a server in express using mysql as sgd...
asked by 09.04.2018 / 22:36
1
answer

configure apache nodejs proxy server

I have created a program with nodejs that works correctly in link but I want to "hide" the port (3000) . I have been reading that I need a proxy server, so I configured apache in different ways but I can not achieve my goal. For example,...
asked by 09.04.2018 / 04:33
0
answers

Using files to save SQL queries is good for performance

I am doing a new project in node.js, but I have the question whether it is a good idea to save the SQL queries in file to be able to version in git, since I am using the orm squelize. using the fs library of node.js, to retrieve the inf...
asked by 04.04.2018 / 21:54
1
answer

Failed to save items in MongoDB

I'm having a problem. When I enter data in an HTML and send it to the MongoDB database, the empty elements are sent to me, that is, the attributes that are saved do not contain the data I enter in the html. Here I show you the example: addItem...
asked by 10.04.2018 / 14:59