Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jedi4ever/socialapp

an express/socket.IO/redisstore/terminated project to hook into
https://github.com/jedi4ever/socialapp

Last synced: about 1 month ago
JSON representation

an express/socket.IO/redisstore/terminated project to hook into

Awesome Lists containing this project

README

        

## Description
__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)

## Usage

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'

## Future/Todo

- integrate with cluster