Node.js is an event-based, asynchronous I/O framework that uses Google's V8 JavaScript engine. Node.js is commonly used for heavy client-server JavaScript applications.
1
vote
1answer
13 views
Running two node servers from a single shell command using a shell script
I have to run two node servers in different port, I want to write a simple shell script that will start both of the servers.
I wrote it like below:
node project/rest.js && node ...
0
votes
2answers
13 views
How to build a PHP/Node proxy to render external http images on https website?
I have a website running on https.
I have to load images from external server (external domain) which doesn't have https, but single http protocol.
Is there's any way to handle proxy for http images ...
0
votes
0answers
10 views
Optimizing Node.js inbound/outbound connections
I have question about node.js inbound/outbound connections.
Lets consider my situation or what I want to achieve:
I have for example X inbound http requests per second.
For every request I create ...
0
votes
0answers
12 views
How to use nested collections in mongojs?
When i want to use nested collections using mongojs like: db.kbz01.members
i get an error :
var members = db.kbz01.members;
^
TypeError: Cannot read property 'members' of undefined
There's no ...
-3
votes
1answer
27 views
Does node.js shell have commands like python type? [duplicate]
I want to know whether a object is null or undefined so I use the following code:
if(obj==='undefined'||obj===null)
But it doesn't seem to work. Is there similar python type command to get the type ...
0
votes
0answers
11 views
nodejs restify + vhost: is it possible?
I am trying to develop a REST API (hosted on different vhosts for scalability). One of the vhosts would also host a regular site. The REST API will be most used. The site, is very small and used by ...
0
votes
0answers
7 views
everyauth facebook login exception
I am using express with everyauth.
When I authenticate using facebook I got the exception:
Missing code in querystring. The url looks like ...
0
votes
0answers
6 views
Is the a way to enable node.js REPL terminal color with vim-key-binding?
Running node in terminal will bring you into its REPL mode, with syntax highlighting (e.g. number is yellow, while string is green).
However, I'm not comfortable with its default emacs-key-binding, ...
0
votes
0answers
16 views
Using grunt server, how can I redirect all requests to root url?
I am building my first Angular.js application and I'm using Yeoman.
Yeoman uses Grunt to allow you to run a node.js connect server with the command 'grunt server'.
I'm running my angular ...
2
votes
1answer
47 views
Server-side Javascript functions
Ok guys. I've built a web application with some friends that is somehow complex and took us some time to built. It is entirely built using JavaScript
Now the application has some functions which we ...
0
votes
0answers
8 views
Running a nodeJS sites in Azure Websites
I'm trying to run a nodeJS site in Windows Azure websites. I just git pushed two files:
server.js
package.json
And all of my modules from npm install. It works fine locally but when I browse the WA ...
-1
votes
0answers
8 views
Node js facebook api can't POST
I have a problem implementing amachang's https://github.com/amachang/facebook-node-sdk facebook-node-sdk in my express node.js application , i putted the same code in the example with the modification ...
-1
votes
0answers
8 views
want to pass dynamic argument to kill `lsof -t -i:4723`
i m trying to kill a process running on a port say 4723 by using command “kill lsof -t -i:4723” it works fine , but i need to pass variable in "lsof" command instead of giving directly 4723…like..
...
0
votes
1answer
24 views
Background workers and REST services in Meteor
I have a meteor app and would like to add two features to it.
The first is to schedule background tasks, sort of like cron jobs, on the server.
The second is to add an HTTP endpoint to act as a ...
1
vote
0answers
23 views
Nodejs site cannot be shown in browser
I have set up a nodejs site on RHEL6. Everything looks fine but I cannot view our site in browsers (all fail in Chrome, Safari and IE9). I can use curl getting correct html response. Here is the test ...