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

1000 questions
16
votes
4 answers

Allowing node.js applications to run on port 80

I'm following a walkthrough that guides you through setting up node on an ubuntu machine. I'm at the step where you configure the system to allow node to run on port 80. It (as well as a few other guides I've looked at) recommend running the…
ThinkingInBits
  • 331
  • 1
  • 4
  • 10
14
votes
1 answer

How to configure nginx so it works with Express?

I'm trying to configure nginx so it proxy_pass requests to my node apps. Question on StackOverflow got many upvotes: https://stackoverflow.com/questions/5009324/node-js-nginx-and-now and I'm using config from there. (but since question is about…
Mars Robertson
  • 243
  • 1
  • 2
  • 6
13
votes
1 answer

Different fields for proxy_set_header in nginx configuration

I am very new to nginx configuration. I want to use it set virtual hosts so that I can run different Node JS apps on different ports on the same server, but have them served at different subdomains. After some searching I found a post on…
user191017
  • 233
  • 1
  • 2
  • 6
13
votes
3 answers

Criteria for choosing a server to run Node.js

What criteria would I use to choose a server to run Node.js? It seems like shared-hosting is a nonstarter since it's so new. Given how it works, what would I be looking at in terms of a production machine? Assume initially I'm on a limited (~no more…
artlung
  • 268
  • 1
  • 3
  • 10
12
votes
3 answers

node.js, mongodb, redis, on ubuntu performance degradation in production, RAM is free, CPU 100%

As the question title suggests, I'm having an hard time to figure out what can be improved on my application(or tuned in the os, ubuntu) to achieve an acceptable performance. But first I'll explain the architecture: The front-end server is an 8 core…
Franjanko
  • 276
  • 2
  • 8
12
votes
3 answers

Chef bash resource not executing as specified user

I'm writing a Chef cookbook to install Hubot. In the recipe, I do the following: bash "install hubot" do user hubot_user group hubot_group cwd install_dir code <<-EOH wget…
Arthur Maltson
  • 312
  • 3
  • 12
12
votes
2 answers

Akward delay to connect Apache's proxy request to a node.js App

In my Ubuntu Server 10.04 I'm running an example node.js app: var http = require("http"); function onRequest(request, response) { console.log("Request received."); response.writeHead(200, {"Content-Type": "text/html"}); …
Herman Junge
  • 223
  • 1
  • 2
  • 7
12
votes
5 answers

Is anyone using Node.js as an actual web server?

I am trying to convince myself to pick it up and start developing with it, but I want to know if anyone has expected stability issues or anything of the sort. I understand it isn't "production" quality, like Apache or IIS. I figure for a small site,…
Jeremy Boyd
  • 586
  • 1
  • 9
  • 17
11
votes
2 answers

docker-compose for nginx and nodejs server

I have the following docker-compose.yml file: version: '3' services: server: build: context: ../../ dockerfile: ./packages/website/Dockerfile command: node /cutting/index.js environment: …
dagda1
  • 237
  • 3
  • 6
  • 19
10
votes
3 answers

Appengine stuck on "Updating service [default]..."

I am using nodejs on appengine. We had a perfectly stable app scaffold on tuesday, and by friday it was completely broken after attempting to deploy. We made some minor changes to frontend code, but nothing that I think would prevent the instance…
posit labs
  • 203
  • 1
  • 2
  • 6
10
votes
3 answers

Nginx proxy_pass response truncated

I use nginx to proxy https request to my application server (currently running on 8443). This app server serves dynamic pages, some of them including jquery minified. The pages are in error as it seems jquery is truncated... is there a file size…
Luc
  • 518
  • 3
  • 5
  • 20
9
votes
8 answers

Centos 7 Can't yum install npm

I'm trying to get nodejs and npm installed on centos 7 So first I did rpm -i http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm to get the epel repository Then I tried yum install nodejs. Which worked. Then I tried…
Chris
  • 91
  • 1
  • 1
  • 3
8
votes
1 answer

Nginx WebSocket reverse proxy keeps return 200 instead of 101

I'm currently trying to have a hack.chat on my personal server working. Long story short, it consists of two servers. The first is a simple httpd server serving javascript and CSS. The second one, the chat system, is a node.js server which the…
axellink
  • 83
  • 1
  • 7
8
votes
1 answer

Nodejs Nginx error: (13: Permission denied) while connecting to upstream

I'm trying to run multiple Nodejs applications on Nginx server running on CentOS 7. I noticed that when I run a Nodejs app on some ports I get an 502 Bad Gateway error in the browser so I checked the error logs: [notice] 12806#0: signal process…
user1
  • 181
  • 1
  • 1
  • 3
8
votes
4 answers

Node.js Site is Refusing Connection

I have a fresh Ubuntu instance setup on Amazon EC2. This instance has a node web server on it. When I try to hit my web site, I get an error in my browser. The error is: Connect: Connection refused I've confirmed that I can ping the machine. Yet…
user3284007
  • 201
  • 1
  • 2
  • 3
1
2
3
66 67