Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Mobile App Development with Ionic, React Native, and JHipster - Connect.Tech 2021

Matt Raible
November 10, 2021

Mobile App Development with Ionic, React Native, and JHipster - Connect.Tech 2021

Mobile development offers a lot of options. To develop native apps, you can use Java or Kotlin on Android. On iOS, you can use Objective C or Swift. There are other options, too. You can build hybrid mobile apps and Progressive Web Apps (PWAs). Hybrid mobile apps are those created with web technologies (HTML, JavaScript, and CSS) that look like native apps. PWAs have the ability to work offline and act like mobile apps.

In this talk, we'll explore a few different mobile technologies: PWAs, React Native, and Ionic (with Angular). You'll walk away with knowledge of how to build mobile + Spring Boot apps in minutes with JHipster.

* GitHub repo: https://github.com/mraible/mobile-jhipster
* Demo script: https://github.com/mraible/mobile-jhipster/.../demo.adoc

Matt Raible

November 10, 2021
Tweet

More Decks by Matt Raible

Other Decks in Programming

Transcript

  1. Mobile App Development Ionic, React Native, and JHipster November 10,

    2021 Matt Raible | @mraible Photo by Christopher Alvarenga unsplash.com/photos/K5iyVtWYXqo
  2. Thriving OSS Project Started by Julien Dubois on October 21,

    2013 App Generator, Platform, Learning Tool …
  3. How to Use JHipster Install JHipster and Yeoman, using npm:

    npm install -g generator-jhipster Create a directory and cd into it: mkdir newapp && cd newapp Run it! jhipster
  4. @mraible Hi, I’m Matt Raible Father, Husband, Skier, Mountain Biker,

    Whitewater Rafter Bus Lover Web Developer and Java Champion Okta Developer Advocate Blogger on raibledesigns.com and developer.okta.com/blog @mraible
  5. Agenda 1. Comparing Mobile Frameworks 2. Introduction to JHipster 3.

    Mobile Framework Options - Ionic, React Native, and Flutter 4. Demos 5. Action!
  6. Progressive Web Apps Originate from a secure origin, load while

    offline, and reference a web app manifest.
  7. Progressive Web Apps Can be installed on your mobile device,

    look and act like a native application, but are distributed through the web.
  8. Enabling a PWA in JHipster <script> if ('serviceWorker' in navigator)

    { window.addEventListener('load', function () { navigator.serviceWorker.register('/service-worker.js') .then(function () { console.log('Service Worker Registered'); }); }); } </ script> src/main/webapp/index.html
  9. Introduction to JHipster What is JHipster? Installing and Using JHipster

    Authentication with OpenID Connect Code Quality Part 2
  10. A resilient microservice architecture with cloud native principles in mind

    JHipster Goals A sleek, modern, mobile-first UI with Angular, React, or Vue + Bootstrap for CSS A high-performance and robust server-side stack with excellent test coverage A powerful workflow to build your application with Webpack and Maven or Gradle
  11. How to Use JHipster Install JHipster and Yeoman, using npm:

    npm install -g generator-jhipster Create a directory and cd into it: take newapp Run it! jhipster
  12. Demo Using JHipster, create an app Generate entities in app

    Convert app to be a PWA Test with Lighthouse
  13. Part 3 Ionic What is Ionic? Why? Ionic Module for

    JHipster JWT and OIDC Support Entity Generator
  14. Ionic Ionic Framework Develop Hybrid & PWA Apps https://ionicframework.com Stencil

    Vanilla Web Components https://stenciljs.com PWA Toolkit Lightning fast PWAs https://github.com/ionic- team/ionic-pwa-toolkit
  15. Why? The first version of 21-Points Health I wrote with

    JHipster 2.x was painful to use on a mobile device. Versions 4.x and 5.x are better, but still not great. I want to develop the best user experience. Native apps are painful to distribute, but work better than PWAs (on iOS).
  16. Run it! yo jhipster-ionic Ionic Module for JHipster Because Ionic

    Apps need some JHipster 💙 too! https://github.com/jhipster/generator-jhipster-ionic Install Ionic and the Ionic Module for JHipster, using npm: npm i -g @ionic/cli generator-jhipster-ionic yo Profit! 🤑
  17. Part 3 React Native What is React Native? JHipster React

    Native blueprint Expo, React Native Web, and Detox JWT and OIDC Support Entity Generator
  18. Create an app: jhipster --blueprints react-native JHipster React Native https://github.com/jhipster/generator-jhipster-react-native

    Install the React Native blueprint, using npm: npm install -g generator-jhipster-react-native Build the next hot mobile app! 🔥 A React Native blueprint for JHipster apps
  19. Demo Create an app w/ React Native Generate entities in

    app Run in a browser Run on iOS and Android
  20. Part 3 Flutter What is Flutter? Flutter Module for JHipster

    Full I18n support Entity Generator JWT Auth Only
  21. Create an app: yo jhipster-flutter-merlin Flutter Module for JHipster https://github.com/merlinofcha0s/generator-jhipster-flutter

    Install the Flutter module, using npm: npm install -g generator-jhipster-flutter-merlin Build a beautiful mobile app! 💖 Generate your Flutter mobile App (Android / iOS) for JHipster
  22. Part 5 Action Try JHipster! Learn More about PWAs Try

    Ionic for JHipster Try JHipster React Native Report Issues 🙏