Posts

Showing posts with the label Mongo db

Private Chat Using Node js and socket.io with encrypt and decrypt message and insert into mongo db

node.js and socket.io chat tutorial This is a very simple single-room chat client using node.js, socket.io and the express module. i found that the ready availability of  documentation  and the eagerness of experienced individuals to help the newly adopting, throughout the  node.js  communities, allow for quicker learning and sharing of acquired skills UPDATE:  long overdue, but you can now skip the following step and just install via the .msi or .pkg files and they include NPM –  http://nodejs.org/#download to begin, you must install node.js and npm along with their dependencies in Linux System now, install the modules curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install -y nodejs For Update  sudo apt-get purge node-express now, install the modules npm install -d let’s now create the server file, server .js var express = require( 'express' ); var app = express(); var server = require( 'http' ).cr