weld-io / websocket-server-boilerplate

Boilerplate for a websocket-based “micro service” running on Socket.io and Node.js. Client can be hosted elsewhere.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Websocket Server Boilerplate

Boilerplate for a websocket-based “micro service” server running on Socket.io, Node.js, Express, MongoDB.

This is for when you DON’T want websocket client files to be hosted on the websocket server.

The client can run on another machine and connect over websockets:

Chart

Server

Found in /server folder.

Start with:

grunt serve

The server is based on the angular-fullstack generator and contains Node.js, Express, MongoDB.

Client

Found in /client folder. This is like a “dashboard” for the websocket server. The “Test Client” below is more interesting.

Test Client

Found in /test-client folder.

Start with:

cd test-client
python -m SimpleHTTPServer 9007

The test client is written in AngularJS and uses angular-socket-io.

Thanks to

Big thanks to Leszek Hanusz for solving my Socket.io issues.

About

Boilerplate for a websocket-based “micro service” running on Socket.io and Node.js. Client can be hosted elsewhere.

License:MIT License


Languages

Language:JavaScript 51.0%Language:ApacheConf 37.0%Language:HTML 8.8%Language:CSS 3.1%