Questions tagged [node.js]

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. NOTE: Please read the Tag-Wiki before asking questions.

Node.js is an event based, asynchronous I/O framework that uses Google's V8 JavaScript Engine.

Node.js - or just Node as it's commonly called - is used for developing applications that make heavy use of the ability to run JavaScript both on the client, as well as on server side and therefore benefit from the re-usability of code and the lack of context switching.

It's also possible to use matured JavaScript frameworks like YUI and jQuery for server side DOM manipulation.

To ease the development of complex JavaScript further, Node.js supports the CommonJS standard that allows for modularized development and the distribution of software in packages via the Node Package Manager.

Applications that can be written using Node.js include, but are not limited to:

  • Static file servers
  • Web Application frameworks
  • Messaging middle ware
  • Servers for HTML5 multi player games

When asking questions about Node.js, you should:

  1. Make sure to check the official API Docs before asking, your question might be trivial.
  2. Isolate the problem and reproduce it with as little code as possible, if you can also use an online tool like JSApp for that, it's even better.
  3. If the question has nothing do with anything that's Node.js specific, please consider asking it as a question instead.
  4. Mention which version of Node.js you are running, when in doubt use node -v.
  5. Make sure to only use the Tag, since is ambigious.

Interesting Questions and Answers

Common Topics

Useful Links

Tutorials, Guides and Books

Talks and Presentations on Node.js

1026 questions
0
votes
1 answer

What are the advantages of using dedicated server software over framework built-in servers?

Being a beginner in the web world, I've always used Apache to develop applications in PHP. Getting tired of it, I learned Node.js, Rails and Django -- just to get a taste of each of the most used web frameworks nowadays. All of them have built-in…
gchiconi
  • 111
  • 3
0
votes
0 answers

How can I set up a web server for reverse proxy having websockets and socket.io working normally?

I have a VPS currently hosting node.js web apps and one site. However I'm currently using custom ports for the apps. I'd like to simply give each its custom domain and so for more sites, that would mean they all would go to port 80 by default. As I…
diegoaguilar
  • 159
  • 1
  • 3
  • 10
0
votes
1 answer

Permissions denied when installing Node.js on CentOS 6.5

I'm trying to install Node.js on an Nginx+Passenger+Ruby server running the following steps as user 'deploy': wget http://nodejs.org/dist/v0.10.26/node-v0.10.26.tar.gz tar zxvf node-v0.10.26.tar.gz cd node-v0.10.26 sudo ./configure && make && make…
eComEvo
  • 1,011
  • 3
  • 20
  • 32
0
votes
1 answer

mongoose/mongodb DoS-ing a nodeJS instance

We have a nodeJS instance inside a AWS VPC that makes a request to a mongodb instance running in another availability zone. The node instance is hit with a particular request a lot. That request is used to pull a lot of information from the mongodb…
MB.
  • 385
  • 2
  • 5
  • 12
0
votes
1 answer

How can node.js bind to loopback IPs that don't exist?

Simple node server started like so: server.listen(8080, '127.0.0.10'); This ip address does not exist anywhere in ifconfig: sudo ifconfig | grep 127.0.0.10 # No matches I can connect to 127.0.0.10 and reach node, but not any other loopback…
chmac
  • 1,017
  • 1
  • 8
  • 16
0
votes
2 answers

nginx reverse proxy or squid forward proxy (transparent)?

I have to implement a proxy server in front of a running production server to route and secure the production-server. On the production server multiple node.js applications listening on different ports. client1.example.com --> ProxyServer -->…
Webx10
  • 65
  • 2
  • 8
0
votes
1 answer

Unable to connect to GMail SMTP server

I'd like to send some emails with my gmail account and nodemailer. Locally, it works fine, but not in my server. $ telnet smtp.gmail.com 465 Trying 74.125.29.108... Trying 74.125.29.109... Trying 2607:f8b0:400d:c04::6d... telnet: Unable to connect…
Diego Couto
  • 121
  • 1
  • 3
0
votes
1 answer

Node.js ESB authentication for connection to cloud based services

I've been looking at Authentication for Node.js and it seems like http://passportjs.org/ fits the bill quite nicely. Do you think that this would be a good candidate to interface with all major third party cloud based services that would be useful…
Nikos
  • 103
  • 1
  • 5
0
votes
0 answers

Internaly hosted alternative to cloudbased nobackend solution like Firebase

In an environment where I can't use a cloud based service like Firebase, I'm looking for recommendation for an internally hosted nobackend solution. I could use node or meteor but really am just wanting to get functionality to Firebase, without…
Nikos
  • 103
  • 1
  • 5
0
votes
2 answers

Should i separate MYSQL from PHP and NODE JS to another server

I am a PHP Programmer and working on community website. I am using Apache NodeJS Php and Mysql on server: 24GB RAM Intel i7 950 8Cores 8Threads 3.06GHz, 120GB SSD HDD 12GB SWAP (dedicated server) OS: Debian Wheezy. My question is should i have to…
0
votes
2 answers

node.js hello world server on amazon EC2

As a lead in to deploying the Ghost blogging platform, I am checking that node.js can be deployed on my Amazon EC2 instance with Ubuntu 13.04 The Ghost Github page even gives step by step instructions on how to deploy to EC2 and verifying node is an…
john mangual
  • 109
  • 2
0
votes
1 answer

How can I run Apache Tomcat and Node.JS servers at the same time?

I'll give you an example of what I want: Let's pretend my domain is domain.com for now. My server machine is a Linux (Ubuntu). I'm currently running Tomcat as my server on ports 80 and 8080. I have Node.JS installed, and I have a Node app. If I run…
crownusa
  • 23
  • 1
  • 2
  • 4
0
votes
1 answer

MongoDB Failover Replica Set

I'm newbie to mongodb replica sets and sharding.. I am setting up IP Failover on two servers. I set up DNS failover at AWS route 53 to switch the IP address in case the main server goes down. I also set up Mongo replica set across the main server…
code ninja
  • 187
  • 1
  • 8
0
votes
1 answer

Nginx + node.js single page app, sending /index.html and proxying together

I've got a Nginx running, with Node.js on port 3000. location / { root /path/to/my/site; index index.html index.htm; try_files $uri $uri/ @node; } location @node { proxy_set_header X-Real-IP…
Laurens
  • 101
  • 1
  • 2
0
votes
1 answer

Add IP address to Ubuntu 13.10 and separate webserver requests

I've got a Ubuntu 13.10 VPS server with 1 IPv4 (111.111.111.111) (and 1 IPv6 address). I recently requested an extra IP address (222.222.222.222) but I can't seem to figure out how to add the new IP address to my network configuration. My current…
Chris
  • 101
  • 2