The document describes the development of a fun website called HappyKardashian.com using various technologies including Red Hat OpenShift for hosting, RedBeanPHP as an ORM library to generate database structures, and Twitter Bootstrap for responsive design templates. Twitter OAuth authentication was also integrated to allow posting tweets directly from the site to celebrate Kardashian family anniversaries stored in the database.
2. Why?
Full-time backend developer w/StraightNorth
Site required to fill multiple needs
● Learn new technologies
● Site needed to be built over lunch hours
● Site needed an element of "fun"
3. Fun Site / Fun Tech
● Red Hat's OpenShift
● RedBean ORM (Object Relational Manager)
● Twitter Bootstrap (front-end framework)
● Twitter OAuth
4. Red Hat OpenShift hosting
openshift.redhat.com
● Free developer cloud server
● git/ssh/shared ssl
● JBoss/Node.js/Perl/PHP/Python/Ruby/...
● Drupal/Cake/Ruby/Wordpres/...
● MySQL/MongoDB NoSQL
● Cron/phpMyAdmin
5. RedBeanPHP ORM Library
redbeanphp.com
Object Relational Mapper
Automatically:
● generates tables
● columns
● foreign keys
● no XML, YAML or ini files...just one file
● easy for fast development
6. RedBeanPHP Sample Overview
All database structures will be generated
automatically, on-the-fly, by RedBeanPHP
rb thinks in what it calls 'beans' -
plain old PHP object with public properties
7. RedBeanPHP Sample Initialization
require('rb.php');
// for SQLite
R::setup();
// for mysql
R::setup('mysql:host=localhost;
dbname=database','user','password');
// PostgreSQL available as well
// only InnoDB