SlideShare a Scribd company logo
1 of 23
Tools to Make Cross-platform Web Applications
mLearnCon: Concurrent Session 103
http://slidesha.re/M0vEGm




          Parris Khachi: @parrissays
             Khoa Lam: @dangkhoa
What’s your beef?
What we’ll cover

      Design/Content                What you should already know:

•   Typography                      • HTML/CSS
•   Responsive Design               • Some knowledge of “Server Side”
•   Media                             applications
•   Animation Cross Platform
•   HTML5/Fallbacks
•   Tools/Frameworks


       Development
•   Platforms/Libraries
•   Cloud
•   Mobile Deployment
•   Testing
•   Live Demo
Design/Content



                      Typography (CSS3)
@font-face
                                     http://www.fontsquirrel.com/




http://typekit.com/
Design/Content



                   Typography (cont)




http://fittextjs.com/
                               http://letteringjs.com/
Design/Content


     The web is not the constitution
           (media queries)




http://mediaqueri.es/      http://responsive.is
Design/Content


                What about my media?
             HTML5 audio/video and fallbacks
                                        jPlayer Video/Audio:
                                           http://jplayer.org/




VideoJS:
http://videojs.com/
Design/Content


                        What about my media?
                      Multi-res images and fallbacks
Content:                                                Handy Media Queries for Backgrounds:
- Save your images larger                               .your-image {
- Some CSS:                                               background:url(picture.png);
                                                          width: 20px;
                                                          height: 20px;
img, embed, object, video{                              }
  max-width: 100%;
}                                                       @media
                                                        only screen and (-webkit-min-device-pixel-ratio: 1.5),
about img {                                             only screen and (min-device-pixel-ration: 1.5) {
  width: 30%;                                             .your-image {
}                                                           background-image: url(picture@2x.png);
                                                            -webkit-background-size: 20px 20px;
Won’t work in IE6, but there are work-arounds               background-size: 20px 20px;
out there!                                                }
                                                        }
Image Transparency/Max-width Fixes:
http://msdn.microsoft.com/en-
us/library/ms532969(v=vs.85).aspx
                                         File-size Considerations:
                                         Picture Fill: http://scottjehl.com/picturefill/
                                         <picture alt=“blah”>
                                           <source src=“something.jpg” />
                                           <source src=“something-big.jpg” media=“(min-width:800px)” />
                                           <noscript><img src=“something.jpg” alt=“blah” /></noscript>
                                         </picture>
Design/Content




Chill, it’s just a different way to write HTML4
Design/Content



            Well how about my animations?

                                                   jQuery Based
                              http://visitmix.com/work/glimmer/




CSS3 Based:
http://www.sencha.com/
products/animator
Design/Content



            But it doesn’t work everywhere?
                                                            HTML 5 Shiv:
                                   https://github.com/aFarkas/html5shiv/
                                     http://code.google.com/p/html5shiv




CSS3 Fallbacks to jQuery:
http://addyosmani.com/blog/css3t
ransitions-jquery/
Design/Content



         That sounds like too much work




http://twitter.github.com/bootstrap/   http://jquerymobile.com/
Design/Content



        That sounds like too much work (cont)




http://www.sencha.com/products/touch/
                                   http://www.sencha.com/products/architect/
Design/Content



That sounds like too much work (cont)




           http://www.codiqa.com/
Design/Content



Oh, dashcode would work too!




      It should just come with the iOS SDK
Development


                   Ahh, I’m a developer,
               how do I manage this insanity?
With More Insanity!!!

Design Your Eco-system

Models/Libraries
                        MVC


                   Middleware




      Views
Development


                   Ahh, I’m a developer,
               how do I manage this insanity?
With More Insanity!!!                  Framework   Models   Middleware   Views


                                          x          x          x
Design Your Eco-system

Models/Libraries
                        MVC               x                     x
                                                                           x
                   Middleware
                                                                           x
                                Sass                                       x
                                Haml                                       x
      Views
                                                                           x
                                                                           x
                                          x          x
Development



                               Deployment

How does it get to the end user and not just stay on my machine?




                                 Interacts with…




                               Which are built on…
Development



               How about actual applications?

Wait you actually want to do MORE work?
Let’s at least leverage what we already have…
Development



ONE Possible Setup

             Framework   Models   Middleware   Views


                x          x          x


                x                     x
                                                 x
                                                 x
      Sass                                       x
      Haml                                       x
                                                 x
                                                 x
                x          x
Development



                     ONE Possible Setup (cont)

1. Install nodejs and heroku
2. Open command prompt

        npm install –g expresss
        express your-project
        cd your-project
        npm install backbone
        git init
        git add .
        git commit –m “init”
        heroku create - - stack cedar
        git push heroku master

3. Find Heroku URL from your account
4. Read and do Hello World Phone Gap app, and use that URL instead of the
   default file:/// url they specified
5. Your first mobile app using nodejs and express on heroku with phonegap is done
Development



 How do we REALLY know it works everywhere?

Answer: Let’s write a test for it…



                                     +
Follow us on twitter:         Download presentation:
@parrissays                http://slidesha.re/M0vEGm
@dangkhoa




          So what now? Oh, Only Everything…

More Related Content

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

Tools to Make Cross-platform Web Apps (mlearncon2012)

  • 1. Tools to Make Cross-platform Web Applications mLearnCon: Concurrent Session 103 http://slidesha.re/M0vEGm Parris Khachi: @parrissays Khoa Lam: @dangkhoa
  • 3. What we’ll cover Design/Content What you should already know: • Typography • HTML/CSS • Responsive Design • Some knowledge of “Server Side” • Media applications • Animation Cross Platform • HTML5/Fallbacks • Tools/Frameworks Development • Platforms/Libraries • Cloud • Mobile Deployment • Testing • Live Demo
  • 4. Design/Content Typography (CSS3) @font-face http://www.fontsquirrel.com/ http://typekit.com/
  • 5. Design/Content Typography (cont) http://fittextjs.com/ http://letteringjs.com/
  • 6. Design/Content The web is not the constitution (media queries) http://mediaqueri.es/ http://responsive.is
  • 7. Design/Content What about my media? HTML5 audio/video and fallbacks jPlayer Video/Audio: http://jplayer.org/ VideoJS: http://videojs.com/
  • 8. Design/Content What about my media? Multi-res images and fallbacks Content: Handy Media Queries for Backgrounds: - Save your images larger .your-image { - Some CSS: background:url(picture.png); width: 20px; height: 20px; img, embed, object, video{ } max-width: 100%; } @media only screen and (-webkit-min-device-pixel-ratio: 1.5), about img { only screen and (min-device-pixel-ration: 1.5) { width: 30%; .your-image { } background-image: url(picture@2x.png); -webkit-background-size: 20px 20px; Won’t work in IE6, but there are work-arounds background-size: 20px 20px; out there! } } Image Transparency/Max-width Fixes: http://msdn.microsoft.com/en- us/library/ms532969(v=vs.85).aspx File-size Considerations: Picture Fill: http://scottjehl.com/picturefill/ <picture alt=“blah”> <source src=“something.jpg” /> <source src=“something-big.jpg” media=“(min-width:800px)” /> <noscript><img src=“something.jpg” alt=“blah” /></noscript> </picture>
  • 9. Design/Content Chill, it’s just a different way to write HTML4
  • 10. Design/Content Well how about my animations? jQuery Based http://visitmix.com/work/glimmer/ CSS3 Based: http://www.sencha.com/ products/animator
  • 11. Design/Content But it doesn’t work everywhere? HTML 5 Shiv: https://github.com/aFarkas/html5shiv/ http://code.google.com/p/html5shiv CSS3 Fallbacks to jQuery: http://addyosmani.com/blog/css3t ransitions-jquery/
  • 12. Design/Content That sounds like too much work http://twitter.github.com/bootstrap/ http://jquerymobile.com/
  • 13. Design/Content That sounds like too much work (cont) http://www.sencha.com/products/touch/ http://www.sencha.com/products/architect/
  • 14. Design/Content That sounds like too much work (cont) http://www.codiqa.com/
  • 15. Design/Content Oh, dashcode would work too! It should just come with the iOS SDK
  • 16. Development Ahh, I’m a developer, how do I manage this insanity? With More Insanity!!! Design Your Eco-system Models/Libraries MVC Middleware Views
  • 17. Development Ahh, I’m a developer, how do I manage this insanity? With More Insanity!!! Framework Models Middleware Views x x x Design Your Eco-system Models/Libraries MVC x x x Middleware x Sass x Haml x Views x x x x
  • 18. Development Deployment How does it get to the end user and not just stay on my machine? Interacts with… Which are built on…
  • 19. Development How about actual applications? Wait you actually want to do MORE work? Let’s at least leverage what we already have…
  • 20. Development ONE Possible Setup Framework Models Middleware Views x x x x x x x Sass x Haml x x x x x
  • 21. Development ONE Possible Setup (cont) 1. Install nodejs and heroku 2. Open command prompt  npm install –g expresss  express your-project  cd your-project  npm install backbone  git init  git add .  git commit –m “init”  heroku create - - stack cedar  git push heroku master 3. Find Heroku URL from your account 4. Read and do Hello World Phone Gap app, and use that URL instead of the default file:/// url they specified 5. Your first mobile app using nodejs and express on heroku with phonegap is done
  • 22. Development How do we REALLY know it works everywhere? Answer: Let’s write a test for it… +
  • 23. Follow us on twitter: Download presentation: @parrissays http://slidesha.re/M0vEGm @dangkhoa So what now? Oh, Only Everything…

Editor's Notes

  1. Welcome!