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
0 answers

setuid upstart not working

I have created a .conf file in which I include setuid mario setgid mario in order to run as mario user. The program I run in the exec command is forever which runs an instance of node which inside spawns cvlc. cvlc does not permit to be…
Mario
  • 127
  • 3
0
votes
1 answer

Run sh file when Amazon EC2 instance starts

I have a "sh" file that starts a node server. It works well if I run sh /var/www/init_node.sh I want the script to run everytime my instance restarts (so I have a node server up and running). I added the script to my /etc/rc.local file as…
Tony
  • 445
  • 2
  • 6
  • 14
0
votes
0 answers

iptables only partially redirecting ports

I am moving over everything that uses port 80 to port 9000 on my server, so I configured my apache + it's virtual hosts to listen to 9000 using ip xx.xx.xx.106, and I set up my iptables to preroute and they work fine. The problem is I have a nodejs…
Maruf
  • 159
  • 9
0
votes
1 answer

can't work node.js server with nginx, the page is always nginx welcome page

I start a node.js server on the aws cloud, the location of the server is /home/ubuntu/home/fablab. I can start my node.js server with nginx in port 80, everything is working fine. Then I am following the tutorial to work node.js and nginx on the…
user824624
  • 113
  • 5
0
votes
1 answer

How to expose securely a Node.js/Express server into the real world?

Essentially I would like to know what the title suggests. Node.js/Express is nice. However, node is a fairly recent thing and hence there may be security risks by exposing the server to the real world. So, my question really boils down to what sort…
MightyMouse
  • 103
  • 3
0
votes
1 answer

Nginx 504 monitoring

I'm using Nginx to reverse proxy a nodejs instance that is currently timing out when an external service attempts to call a specific, secured api endpoint, generating 504 errors. How can I setup Nginx to notify me (ie. via email) when it serves a…
max
  • 103
  • 1
0
votes
3 answers

nginx node.js & socket.io 504 timeout

Nginx config server { listen *:80; server_name live.domain.com; server_tokens off; charset utf-8; error_log /var/log/nginx/live-error.log info; access_log /var/log/nginx/live-access.log; …
Isis
  • 113
  • 1
  • 4
0
votes
1 answer

Run a Javascript file (server-side, using Node.js) from the browser / internet

I've got a javascript file on a RHEL server, which I can run (when communicating through console / SSH to the server) using 'node script.js'. However, I'd like a user to be able to activate the script by visiting a URL. I tried actually running a…
Anti Earth
  • 119
  • 2
  • 6
0
votes
3 answers

hidden all files public_html! but how?

My host has hidden files on my node.js webserver (he did this may/june 2013) and can't remember how/what he did... I need to ask at this point as I have been reading around centos stuff and looking into http.config file and not really seeing…
0
votes
1 answer

Identifying particular node processes in htop

I have a app that starts a number of nodeJs processes. The processes are not all running the same JS code, there are about three types of 'roles' for the processes. Currently if I run something like htop to have a look at CPU usage, I have no way…
UpTheCreek
  • 1,628
  • 10
  • 32
  • 48
0
votes
2 answers

Accessing hundreds of servers behind firewalls

I'm currently have hundreds of debian servers around the country and to manage/support each of them I have to open SSH, HTTP & HTTPS ports on the routers. I'm looking for a solution where the servers connect to my office server and I can connect…
Lukav
  • 3
  • 1
0
votes
1 answer

deploying meteor on my own domain (ubuntu)

I want to deploy my meteor app on my Ubuntu server, I used meteor.sh and everything went successfully, But i simply can't launch my app from the browser I'm putting my ip address and getting a 404 The requested URL / was not found on this server. I…
Dany Y
  • 115
  • 6
0
votes
1 answer

Rundesk cannot execute local command

I'm trying to interact with the nodejs Azure sdk from a CentOS installation of Rundeck. If I try from the "run" adhoc virtual shell, I am able to after running azure account import and can then also execute other Azure commands inside of…
ljs.dev
  • 1,254
  • 2
  • 9
  • 15
0
votes
1 answer

Nginx multiple websites behind different domain paths

Is it possible to route different paths to separate websites? I got the following scenario: 1 Home server with 1 IP e.g. 192.168.178.30 On this server are the following services installed: - Jira - http://IP:8080/ - Confluence - http://IP:8090/ -…
0
votes
2 answers

Problems with running a node.js application using mongoDB on a VPS running CentOS

I have registered a VPS with DirectAdmin, running CentOS and I'm using a domain which I registered from a different site. I've done the necessary configuration to make the domain display the default page of the VPS. I've also installed node.js and…