test websockets app
JavaScript HTML CSS Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
_sass
css
js
partials
server
vendor
.gitignore
.jshintrc
.travis.yml
Gruntfile.js
Procfile
README.md
config.rb
index.html
index.js
package.json

README.md

Mdworld Stox demo

Stox websockets demo, hosted on Heroku: http://mdworld-stox.herokuapp.com/

Based on: A tiny demo using the einaros/ws WebSockets implementation.

Running Locally

npm install
npm start

or instead of npm start, run

foreman start

Running on Heroku

Now done with Travis, see .travis.yml file. Also see https://travis-ci.org/mdvanes/mdworld-stox

Manually

heroku create
git push heroku master
heroku open

Useful commands

  • heroku logs --tail

  • heroku restart (restart ALL apps)

  • heroku ps:scale web=0 / heroku ps:scale web=1 (disable/enable app)

  • heroku maintenance:on / heroku maintenance:off

  • git commit . -m "comment" (commit changes)

  • git push origin master (submit to github)

TODO

  • add Google analytics
  • Stox: when updating in admin, then opening a client, the default values are shown instead of the values selected at admin. This is because the admin doesn't update the model but directly sends the values to the node server. This should be converted to the Angular approach.
  • inheritance
  • amount of clients via angular in title
  • angular websockets, see AdminSocket
  • feature: messaging (multiple messages)
  • other features (mirror, icons behind connected clients, limit admin to 1 logged in?)
  • when opening client first and then in another window admin, only admin shows under connected clients
  • Grunt with compass, jshint and that does foreman start/npm start
  • convert PHP features
  • add Angular. implement routing with Angular for admin/client pages
  • show id
  • send messages
  • set stocks
  • use sails.js?
  • add "kicking" of specific clients from Admin page
  • restyle sliders on Admin page to look like barchart
  • longpoll polyfill for browsers without websocket support (IE < 10, android stock)
  • Multiplayer Pong!

Changelog

  • Admin should have diagonal background
  • Stox (Initrode, CollaboSmart, Umbrella Co.)
  • first features: -connected clients-, log,
  • feature: messaging (basic)