At ConnectED 2015, Theo Heselmans (Xceed/Engage) presented BTE101: Yes, you can use those modern frameworks for mobile Domino development. The session is from the Beyond the Everyday track, which were some of the sexier sessions at the conference.
In this tip from that session, Theo introduces his definition of what a framework/library is and what requirements you need to work with one. He then goes in depth on Bootstrap and Ratchet frameworks, including examples, screenshots and HTML, and his analysis of the good and bad of each.
The full presentation is available in our ConnectED 2015 community. In the full slide deck, he also looks at the Backbone and Knockout frameworks and provides 6 key development resources.
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Tip from ConnectED 2015: Using Bootstrap and Ratchet frameworks in Domino mobile development
1. BTE101: Yes, you can use
those modern frameworks
for mobile Domino®
development
Theo Heselmans, Xceed / Engage
2. What's a Framework / Library
▪ My Definition:
Any set of CSS and/or JS code
that do the dirty work for you
– Deal with cross-browser issues
– Responsive & mobile first design in mind
– Reusable components
– HTML - design - code - navigation - data
UI
Architecture
DOM▪ Layered schema:
– UI - Architecture - DOM
– Design - MVC - Supporting libs
3. Requirements
▪ Frameworks
– As much tailored to your (current) needs
as possible
– Well documented
– Well maintained
– Broadly used
– If MVC: REST support
see John Dalsgaard REST services
▪ Your Skills
– HTML(5)
– CSS(3)
– JavaScript
– REST / JSON
– Notes:
– Formula language
– LotusScript
– XPages
– Domino Access Service
4. A Gazillion frameworks and Libraries
▪ Tough to choose
▪ Impossible to read/try them all
▪ 'Best of' lists are a good start and # of stars/contributors on GitHub
▪ Peers and Social Media are (often) your friends
▪ Keep your eyes open
– Don't dive into something new headfirst
– Let it mature and prove its value first
– Many die out after a year
▪ Do use 'helper' JS tools: jQuery, Underscore.js, Zepto.js
6. Bootstrap
▪ A Front-End framework
Bootstrap is a free collection of tools for creating websites and web applications.
It contains HTML and CSS-based design templates for grids, typography, forms, buttons,
navigation and other interface components, as well as optional JavaScript extensions
▪ Examples & Demo:
– Countries
– EY: Topics
– Engage: website
▪ Screenshots and HTML
▪ The Good & the Bad
▪ Bootstrap getbootstrap.com
10. Bootstrap: Basic HTML (Part 3)
<!-- Begin page content -->
<div class="container">
Main Content goes here
</div>
<!-- Bootstrap & JQuery core JavaScript -->
<script src="/mydb.nsf/js/jquery-1.11.1.min.js"></script>
<script src="/mydb.nsf/js/bootstrap.min.js"></script>
</body>
</html>
11. Bootstrap: the good and the bad
▪ The Bad
– Broadly used
– Not an MVC model: only UI
▪ The Good
– August 2010: Twitter released Bootstrap
as open source.
– GitHub: over 75,000 stars
and more than 28,000 forks
– Regular updates: current version 3.3.2
– Many interface components
– Excellent documentation, and many
templates
– Easy to get started and implement
– Broadly used ▪ Tip: Bootstrap for XPages
13. Ratchet.js
▪ A Front-End framework
Ratchet.js is used to build mobile apps with simple HTML‚ CSS‚ and JS components
▪ Examples & Demo:
– Countries
– Kemin Industries: Lysoforte
▪ Why I changed my mind!
▪ Screenshots and HTML
▪ The Good & the Bad
▪ Ratchet.js goratchet.com
15. Ratchet.js: Basic HTML (Part 1)
<!DOCTYPE HTML><html>
<head>
<title>ConnectED 2015</title>
<!-- Include the compiled Ratchet CSS -->
<link href="/mydb.nsf/css/ratchet.min.css" rel="stylesheet">
<!-- Include the compiled Ratchet JS-->
<script src="/mydb.nsf/js/ratchet.min.js"></script>
</head>
<body>
16. Ratchet.js: Basic HTML (Part 2)
<header class="bar bar-nav">
<a class="icon icon-home pull-left" href="#"></a>
<a class="icon icon-compose pull-right"></a>
<a href="#myNavbar">
<h1 class="title">Welcome to Ratchet</h1>
</a>
</header>
<!-- Wrap all non-bar HTML in the .content div (this is actually what scrolls) -->
<div class="content">
Main Content here
</div>
18. Ratchet.js: the good and the bad
▪ The Good
– GitHub: over 10,000 stars
and more than 1,000 forks
– Easy to implement
– Separate themes for Android and
iOS
– All basic mobile User Interface
components
– Nice documentation
▪ The Bad
– Relatively young (early 2013)
– Limited number of supported
browsers
- Android: default and Chrome
- iOS: Safari
– Only touch support: difficult to test in
desktop browsers
– Intercepts links
– Not an MVC model: only UI