Git Product home page Git Product logo

ci_sock's Introduction

#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

ci_sock's People

Contributors

ericterpstra avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.