CodeIgniter with Socket.IO sample project
PHP JavaScript
Latest commit 33387e3 Apr 9, 2013 @ericterpstra Update README.md
Permalink
Failed to load latest commit information.
part_one Set up part_two folder Mar 29, 2013
part_three Added additional comments. Apr 9, 2013
part_two Set up part_two folder Mar 29, 2013
.gitignore Added redis node package Apr 7, 2013
README.md Update README.md Apr 9, 2013

README.md

CodeIgniter + Socket.IO (with Redis) Sample Project

Part One

The part_one folder contains a plain old PHP/MySQL project utilizing the CodeIgniter framework. Styling is provided by Twitter Bootstrap. The application uses the default Session plugin provided by CodeIgniter.

Read More: A Sample CodeIgniter Application with Login and Session

Part Two

These files allow the use of Redis as a storage medium for CodeIgniter's session data instead of a MySQL table. The MY_Session class overrides several methods in CodeIgniter's Session class so that persistent session data is stored and retrieved from Redis.

Read More: Use Redis instead of MySQL for CodeIgniter Session Data

Part Three

A refactored version of part one. It includes the changes from part 2, but also features real-time updates using Socket.IO and a NodeJS server. Data is shared between NodeJS and PHP via Redis.

The user interface is unchanged, but when a message is posted by a user, any other user with the same team ID will instantly recieve the message and have it posted in the team messages list. Admins will recieve messages from all users, regardless of team ID.

Read More: Live Updates in CodeIgniter with Socket.IO and Redis