Skip to content

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

License

Notifications You must be signed in to change notification settings

weld-io/websocket-server-boilerplate

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published