Skip to content

azayarni/nodesocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

demo app

This demo webapp demonstrates how to implement realtime location updates with node and sockets.io. Implemented on top of sails.js framework and mongoDB as storage.

***Live Demo ***

Installation  

Before instalation ensure that node & a mongo oserver are installed and running on localhost

Install Sails.js, if not installed yet

$ sudo npm install sails -g

Get the cource code

$ git clone git@github.com:azayarni/nodesocket.git demo
$ cd ./demo

Run tests with mocha

$ sudo npm install mocha -g
$ mocha ./tests

Install bower (if not yet) frontend components

$ sudo npm install bower -g
$ cd ./assets
$ bower install

Start server

$ cd ..
$ sails lift

That's it. Then just go to (http://localhost:1337/) and enjoy the show: open two different windows to see the magic of the socket communication.

About

Socket communication demo made with node.js (sails.js), socket.io and mongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors