note alpha state use as code inspiration currently
simple project that will take care of:
-
setting up an express server
- with csrf
- with helmet
- using redis session store
- with passportjs for github and twitter login
-
setting up an socket io
- redis session store
- can reuse sessions from express for login
- works behind proxy
-
work behind a loadbalancer (haproxy)
- ssl termination is correct
- good ciphers check enabled
-
has metrics integrated (statsd)
-
has integrated loggers (winston)
-
all errors are handled
-
works with socket.io-client & websockets
supports nodejs 0.8 - 0.10 (not 11)
Intended use is like this (not 100% accurate code now)
var SocialApp = require('socialapp');
var socialApp = new SocialApp(options);
var socialExpress = sociallApp.express;
var socialSocketio = sociallApp.socketIO;
Now you can extend it by adding your routes or socket handlers to both socialExpress & socialSocketio
emits events 'error','started','stopped'
- integrate with cluster