Simple example of event-based models using PHP/Zend Framework 1.12, Redis and NodeJS.
-
Install Vagrant and VirtualBox
-
Add Ubuntu 13.04 i386 box:
vagrant box add raring32 http://cloud-images.ubuntu.com/vagrant/raring/current/raring-server-cloudimg-i386-vagrant-disk1.box
-
Add salt plugin:
vagrant plugin install vagrant-salt
-
Checkout project:
git clone git://github.com/nkbt/blog-demo.git blog-demo
-
Run vagrant:
cd blog-demo vagrant up
-
Go to http://localhost:10080
- Get working LAMP stack
- Base PHP core with sample data, running site
- Redis and PHPRedis
- Redis admin at http://localhost:10080/redis
- NodeJS 0.10 or newer
- NPM
- Forever
- Node app
- Sample subscribers
- PHP API controller to handle node callbacks
- Counters recalculation
- Counters display
- Topic: forms to add, edit, delete and restore
- Comment: forms to add, edit, delete and restore
- Dashboard for events chains at http://localhost:13000
- User: forms to add, edit, delete and restore