Questions tagged as 'node.js'

1
answer

How to install node.js in shared hosting (CPanel)?

DESCRIPTION: I have a shared hosting (CPanel) and want to install node.js on this hosting so I can install the GHOST , a great tool for managing articles, without the need to base my entire project on a CMS like Joomla or Wordpress. PR...
asked by 04.07.2014 / 03:07
1
answer

Uploading multiple files with Node.js

I'm trying to upload multiple files with Node.js, but I can not do the server part. I'm using ExpressJS as a framework, and if need be I can use other packages to facilitate this task. For the time being, I'm using express.bodyParser()...
asked by 16.06.2014 / 20:17
2
answers

Query using Mongoose in Nodejs always returns null even within asynchronous method

I'm trying to retrieve a document in my Database using Mongoose in Node.js but it always returns Null. My problem before was the asynchronous method, but now everything is running inside it. And I'm just trying to print the recovered document fr...
asked by 23.07.2014 / 17:01
1
answer

Uploading project node.js (with websocket) to Heroku

The project is this: link I followed all these steps: Heroku login ssh-keygen -t rsa heroku keys:add Procfile (web: tilestream --host neuberfranlights.herokuapp.com --host '*' --uiPort=$PORT --tilePort=$PORT --tiles=./tiles) heroku c...
asked by 05.06.2014 / 17:35
2
answers

Database to work with nodejs [closed]

I'm developing an entire application with NodeJS. The main reasons for using NodeJS are financial / performance. I have not yet worked with the database using NodeJS, however I have some doubts, since the data load is great. For compari...
asked by 09.05.2014 / 11:51
1
answer

Facebook Graph returns a different id than saved using passport-facebook [duplicate]

I have an application where the user logs in using the facebook account, saving the id, name and email. I'm using link Here is the excerpt: //Cria um usuario do facebook ou vincula a um usuario ja existente UserSchema.statics.findOrCreateF...
asked by 24.05.2014 / 16:25
1
answer

How to use PhantomJS to access an API with response in JSON

How to use PhantomJS to access an API whose response is JSON and not HTML and process the result? I would like the example to use the Stackoverflow's own Portuguese API, so that the script returns the title and the names of the...
asked by 09.02.2014 / 19:39
1
answer

The route does not run when you call after PayPal checkout

The successful route is not activated after the PayPal checkout that redirects to / success PS: My view is in react. This is the part that is not being called when access / success app.get('/success', (req, res) => { const payerId...
asked by 27.12.2018 / 14:47
1
answer

NodeJS - TypeError: Can not read property 'get' of undefined

I'm a beginner in NodeJs and I came across this problem when I was exporting a module: "TypeError: Can not read property 'get' of undefined" . I did not understand why it gave the error since the code is identical to the one of the course teach...
asked by 17.12.2018 / 17:43
1
answer

How to interpret react Native error messages

How do I interpret error messages like this? How much work with react Native throughout the tests always I come across these mensgans. I just do not always know how to treat them. Someone knows if it has a pattern that I can follow, some s...
asked by 10.10.2018 / 15:32