Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jedi4ever/socialapp
- Owner: jedi4ever
- Created: 2013-07-31T09:04:04.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-21T07:55:39.000Z (about 11 years ago)
- Last Synced: 2023-04-10T14:22:19.612Z (over 1 year ago)
- Language: JavaScript
- Size: 316 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 & websocketssupports 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