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

Persist server on AWS EC2 instance

I am able to run my node server on an EC2 instance by SSH-ing into the server and running the command node index.js when inside of the src file. The server works fine, but the issue is that I have to persist the SSH connection to the EC2 instance,…
0
votes
1 answer

Socket hangs up when request takes more than 10 mins to respond

We are sending an axios request to python (which is running in cloud RUN) from node js application (hosted in Google app engine), python (flask) app takes more time to respond in some cases. When it (python) takes more than 10 mins to send the…
0
votes
0 answers

Efficient lookup from file in nodejs?

I am wanting to write a node application that looks up a bunch of blacklists from plain text files. Basically are all under directories representing different categories, and in each there is a file called domains which has a bunch of domain names…
jusschwa
  • 11
  • 2
0
votes
0 answers

Nginx - NodeJS not able to reach subdomains

I have a smalle project that I created an my Raspberry Pi. On the Pi I have a added Nginx and NodeJs in order to create a small Express server. My Express server has a sub path called /api/ip where I can get some information about my IP-address. I…
Stephen
  • 101
  • 1
0
votes
1 answer

Running node.js app on Nginx

I have a node.js app which running nginx, which is working smoothly but the problem is that, when a user enters with IP address and port (ex:5.188.56.20:8010), he can observe the services that are running on this port. How can I make it inaccessible…
ali
  • 1
0
votes
0 answers

Proper way to package a NodeJS application with rpmbuild

I have created my first rpm package for a NodeJS app which is ran as a systemd service. Since I do not want to package the node_modules folder with the rpm (AFAIK npm install is system/node version dependent so it could create some other issues?) I…
HomeIsWhereThePcIs
  • 144
  • 1
  • 2
  • 9
0
votes
0 answers

Connect Nodejs app to MongoDB Via Azure

I have a nodejs application and my organization is using mongodb but via azure which I'm not too familiar with. I usually just go on the mongodb website and then go to the 'connect you application' option and copy the uri. I also wanted to know how…
Mark
  • 1
0
votes
0 answers

Installation of Angular on Windows for multiple users

We are setting up a server that will be used by all application developers for our organization. One of the things I'm told we need, is nodejs, and then an Angular installation. It seems that Angular is installed by and for each user (it's…
Dennis
  • 167
  • 1
  • 12
0
votes
1 answer

Nginx fails to proxy to Node

I have a running Node app that is live and works fine on http and https. I setup Nginx and it is also running fine, tested with an sshtunnel, and it is getting a correct response from static files (such as MyPath/index.html). However, I am trying to…
jlanssie
  • 21
  • 2
  • 7
0
votes
0 answers

Google App Engine based Node Js server does not work on Reliance Jio network in India

Requests to my node server deployed on GAE ends in DNS_PROBE_FINISHED_NXDOMAIN on a particular ISP (Reliance JIO in India). The same app works fine on any other network . If deployed on Heroku or on AWS, again it works as expected. Edit: Forgot to…
0
votes
1 answer

Nginx server blocks and socket.io - CORS

I have been running apps with this server blocks structure for sometime and it has never given me any problems. geo $authentication { default "Authentication required"; `Some ip number` "off"; } server { listen 80 default_server; …
Álvaro
  • 117
  • 1
  • 2
  • 8
0
votes
0 answers

Why is my ubuntu service timing out when I can clearly see it started properly?

Here is my log : Feb 10 10:19:25 ip-172-31-47-29 systemd[1]: Starting TNR Photo Download Service... Feb 10 10:19:26 ip-172-31-47-29 tnr-photos[67938]: Server running on port 2200 Feb 10 10:20:56 ip-172-31-47-29 systemd[1]: tnr-photos.service: start…
Chapo
  • 71
  • 1
  • 8
0
votes
0 answers

Setting up Express.js api in production enviroment

I have an Ubuntu server, and I am trying to deploy an express.js/node based Rest API. All the documents I have read say use Nginx as a reverse proxy to get it working so I have attempted that a dozen different ways and I am endlessly getting 502…
chris
  • 167
  • 1
  • 9
0
votes
1 answer

Deploying nodejs app using npx http-server and Nginx

I am deploying a nodejs app I have tried two alternatives but I can't understand what's the better approach in terms of performance. The first approach I tried is to lunch using pm2 npm start (which in my case call npx http-server ./ -p 8085 -o…
G M
  • 103
  • 5
0
votes
0 answers

SSL Error: How to use Nginx with Node.js App using Angular and websocket

I am running into an SSL error when setting up Nginx as a reverse proxy for a Node.js app. This app uses Angular to serve dynamic content and for WebSocket, we use ws. WS working properly but when attempting for wss I receive below error WebSocket…
user23316
  • 1
  • 2