Tag Archives | Nodejs

How to install and use ForeverJS on CentOS

We can install ForeverJS on CentOS with npm command: Result: To learn how to use ForeverJS, you can read at this tutorial: Managing Nodejs servers with foreverjs

Read full story Comments { 1 }

How to install NodeJS on Centos

In this tutorial, we use Centos 6.8 64bits. Step 1: 1.a: If you Install NodeJS v4: Result: 1.b: If you Install NodeJS v6: Result: 1.c: If you Install NodeJS 0.10: Step 2: Result: Step 3 (optinal): install build tools Now you can check your nodejs version

Read full story Comments { 0 }

Example chat application using Nodejs + ws

Previous tutorial: Example chat application using Nodejs + Websocket With Nodejs, we can create real-time application like chat-room. We can use Socket.io, WS or Websocket. Today, we introduce a simple chat application with Nodejs + Websocket Application structure: File index.html File client.js File server.js Run: npm install ws to install ws Run: node server.js Go […]

Read full story Comments { 0 }

Example chat application using Nodejs + Websocket

Previous tutorial: Example chat application using Nodejs + Socket.io With Nodejs, we can create real-time application like chat-room. We can use Socket.io, WS or Websocket. Today, we introduce a simple chat application with Nodejs + Websocket Application structure: File index.html File chat-frontend.js File: chat-server.js Run: npm install websocket to install Websocket Run: node chat-server.js Go […]

Read full story Comments { 0 }

Example chat application using Nodejs + Socket.io

With Nodejs, we can create real-time application like chat-room. We can use Socket.io, WS or Websocket. Today, we introduce a simple chat application with Nodejs + Socket.io Application structure: File: package.json File: index.html File: app.js Run: node app.js Go to website: http://localhost:443/ Next tutorial: Example chat application using Nodejs + Websocket

Read full story Comments { 1 }