• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
HappyKardashian.com for #FVCP
 

HappyKardashian.com for #FVCP

on

  • 318 views

Demo of HappyKardashian.com where on puts in their anniversary to see how many Kardashians they are.

Demo of HappyKardashian.com where on puts in their anniversary to see how many Kardashians they are.

Statistics

Views

Total Views
318
Views on SlideShare
317
Embed Views
1

Actions

Likes
0
Downloads
0
Comments
0

1 Embed 1

http://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    HappyKardashian.com for #FVCP HappyKardashian.com for #FVCP Presentation Transcript

    • HappyKardashian.comFox Valley Computing Professionals
    • Why?Full-time backend developer w/StraightNorthSite required to fill multiple needs● Learn new technologies● Site needed to be built over lunch hours● Site needed an element of "fun"
    • Fun Site / Fun Tech● Red Hats OpenShift● RedBean ORM (Object Relational Manager)● Twitter Bootstrap (front-end framework)● Twitter OAuth
    • Red Hat OpenShift hostingopenshift.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
    • RedBeanPHP ORM Libraryredbeanphp.comObject Relational MapperAutomatically:● generates tables● columns● foreign keys● no XML, YAML or ini files...just one file● easy for fast development
    • RedBeanPHP Sample OverviewAll database structures will be generatedautomatically, on-the-fly, by RedBeanPHPrb thinks in what it calls beans -plain old PHP object with public properties
    • RedBeanPHP Sample Initializationrequire(rb.php);// for SQLiteR::setup(); // for mysqlR::setup(mysql:host=localhost;dbname=database,user,password);// PostgreSQL available as well// only InnoDB
    • RedBeanPHP happykardashian.com$find = R::findOne(anniversary, "twitter = ?", array($_REQUEST[twitter])); if(!isset($find)){ $bean = R::dispense(anniversary); $bean->twitter = $_REQUEST[twitter]; $bean->anniversary = $start_date; $bean->anniversaries = $anni_data; R::store($bean); }else{ $bean = R::load(anniversary, $find->id); $bean->twitter = $_REQUEST[twitter]; $bean->anniversary = $start_date; $bean->anniversaries = $anni_data; R::store($bean, $find->id); }
    • Twitter Bootstraptwitter.github.comHTML & CSS-based design templates for:● typography● forms● charts● naviation● Responsive!
    • Twitter OAuth API Fundev.twitter.com● Access level - Read & Write● Access token - <string>● Access token secret - <string>
    • Twitter OAuth initialconfig<?php$Key = abc;$Secret = 123;$Token = def;$SToken = 456;require_once(twitteroauth.php);
    • Twitter OAuth send that tweet!$tweet = new TwitterOAuth($Key, $Secret, $Token, $SToken);$msg = Happy . $kims . Kardashians!;$tweet->post(statuses/update, array(status => $msg) );
    • Thank you!Eric Michalseneric.michalsen@gmail.com@michalsen