Questions tagged as 'node.js'

0
answers

Upload photo Api Rest nodejs [closed]

I'm developing a restful api with nodejs and mongodb. And I am creating an endpoint for user registration, but I would like to send a photo at the time of registration. Which of the three solutions would be best? An S3 * amazon, I send a...
asked by 08.02.2016 / 21:41
0
answers

Script (automate fields of a site) [closed]

Hello, I have been given a task that I do not know how to start, automate fields of a certain site, not need to be typing them every month, I was given a spreadsheet with several values, and I would have to save them line by line. Well, I'm lost,...
asked by 03.03.2016 / 19:57
1
answer

How to change the current database schema config.js? [closed]

I'm working on an application already developed developed in Node.js / Expressjs. At the moment my problem is: 95% of the application uses schema A , but the new module I'm creating needs to use schema B . How do I make this change at ru...
asked by 19.01.2016 / 12:48
2
answers

Change in json file format

My file is coming in this format, but I wish it did not appear this #id before sale: { "$id": "1", //como não mostra isso? "venda": [ { "$id": "2", "poule": 73, "idusuario": 4, "vendedor": "ITAMAR SOUZA",...
asked by 22.01.2016 / 19:38
1
answer

Chat with nodejs and mysql [closed]

I created a chat with nodejs and MySQL to fetch information from the user ... but I have a following problem: when the connection drops or restart the nodejs server, back logging in username and password. Does anyone have a clue how to do th...
asked by 30.06.2015 / 17:15
1
answer

How to receive facebook username? Graph API

Hi everyone. How to get the id of a facebook user, and its name using Graph api? I can only get the message id, using sender = event.sender.id; function fbGetProfile(id) { request({ method: 'GET', uri: 'https://graph.f...
asked by 07.05.2016 / 02:14
0
answers

How the Express Router Function Works

To use middleware in Express, I type the code below: var express = require('express'); var app = express(); app.use('/', function(req, res, next) { console.log('Middleware!'); }); However, I realized that it is also possible to do thi...
asked by 01.05.2016 / 16:42
1
answer

How to use Node.js to run a PHP page?

In my case, the following is occurring: the microcontroller sends data using GET to the server, it saves to the MySQL database and tests if the alert needs to be triggered. This alert is done with a PHP page that uses jQuery + Ajax to send to an...
asked by 05.04.2015 / 00:33
1
answer

Problems installing the Ionic Framework

I'm a beginner with the Ionic framework and I'm having a problem trying to install. Recently I had to format my computer and now I can not install the framework again. When I run the npm install -g ionic command, the error that you c...
asked by 19.02.2015 / 03:14
1
answer

Problem with return

I'm having problem with return since node is all asynchronous. var myFUNC = function(A, B) { A.every(function(AA) { return (AA === B); }); return true; }; if(!myFUNC(...)) { .... } Of course t...
asked by 02.11.2015 / 17:24