Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You can build an Ionic mobile client for a JHipster 6 backend with the Ionic for JHipster blueprint: generate the Spring Boot backend, generate the Ionic app beside it, configure authentication, then create mobile screens for your backend entities. This walkthrough follows the historical stack documented for JHipster 6.4.1, Ionic CLI 5.4.4, and Ionic for JHipster 4.3.0. Pin those versions if you are reproducing it; the current blueprint targets a much newer JHipster release, so do not assume the 2019 setup works unchanged with current tools.

What Ionic for JHipster generates

Ionic for JHipster is a JHipster Blueprint that generates an Ionic client. It consumes the API exposed by your JHipster backend; it does not replace the Spring Boot application. You can use the client in a browser during development, add PWA support, or prepare a Cordova project for iOS or Android.

This guide is version-locked rather than a general installation recipe. The historical setup uses JHipster 6.4.1, Ionic for JHipster 4.3.0, Ionic CLI 5.4.4, Yeoman, Java 8 or newer, Node.js 10 or newer, and Docker. Those are the documented prerequisites for reproducing that stack, not recommendations for a new production project today.

Choose a version path before you begin

Path When it makes sense What to expect
Pinned historical stack You need to reproduce the JHipster 6 tutorial or maintain an application built with it. Use the documented versions together: JHipster 6.4.1, Ionic CLI 5.4.4, and Ionic for JHipster 4.3.0. Older Java, Node, Cordova, and IDE requirements may make setup more difficult on current machines.
Current blueprint You are starting a new application or upgrading an existing one. Marketplace metadata lists compatibility with JHipster 8.11.0. Check the blueprint’s current documentation and adapt the workflow to its supported toolchain instead of mixing current releases with these historical commands.

The commands below follow the pinned path. A successful global installation does not guarantee compatibility if you substitute a newer JHipster generator or Ionic blueprint.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Samsung Galaxy A17 5G Smart Phone 128GB US 1 Yr Manufacturer Warranty Black
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.

Generate the JHipster backend

Install the historical JHipster generator

With a compatible Node.js installation, install the specified generator version:

npm i -g generator-jhipster@6.4.1

Create an OAuth 2.0 backend

Create a directory for the backend and generate a Spring Boot application configured for OAuth 2.0/OIDC authentication. The tutorial’s JDL-based setup uses baseName oauth2, authenticationType oauth2, Gradle, and Protractor. You can enter equivalent choices in the generator prompts or use the tutorial’s JDL shortcut; the important point is that the backend is configured for the same identity provider that the mobile client will use.

Start the backend with its OIDC issuer, client ID, and client secret supplied through environment variables. Keep secrets out of source control, shell history, and checked-in configuration. The precise variable names depend on the generated application’s configuration; use the names it expects rather than inventing new ones. Confirm that the API starts and is reachable before generating or debugging the mobile client.

Rank #2
Tracfone Motorola Moto G 2025, 64GB, Saphire Blue (Locked to
  • Carrier: This phone is locked to Tracfone, which means this device can only be used on the Tracfone wireless network. Tracfone plan required, activating is easy, just 3 steps.
  • DISPLAY: Immersive viewing on a 6.7-inch super-bright 120Hz display with powerful stereo speakers and Bass Boost for cinematic entertainment.
  • CAMERA SYSTEM: Advanced 50MP Quad Pixel camera captures sharp, detailed photos and videos in any lighting condition
  • PERFORMANCE: Lightning-fast 5G connectivity paired with a powerful processor and RAM Boost for smooth multitasking.
  • BATTERY LIFE: Long-lasting 5000mAh battery with TurboPower charging technology delivers hours of power in minutes.

Configure Okta for a native OIDC client

The documented login example uses Okta. Create a native application for the Ionic client and use Authorization Code with PKCE. A native app cannot safely keep a client secret, so its login flow differs from the confidential client credentials used by the backend. The backend and mobile application have distinct client configuration: the backend gets its own OIDC settings, while the Ionic app needs the native application’s client ID.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Create the Okta native application and enable the OIDC flow appropriate for a public native client using PKCE.
  2. Register the local and device redirect and logout URIs required by the generated Ionic authentication configuration. The redirect URI values must match exactly on both sides; use the values expected by this version of the generated app rather than guessing a URI.
  3. Add a groups claim to the token configuration, with ROLE_ADMIN and ROLE_USER represented as groups. The JHipster application uses these roles for authorization.
  4. Keep the mobile client ID available for the Ionic configuration step. Do not put a client secret in the native app.

Account setup instructions have changed since the original tutorial: an Okta notice dated May 2025 says the Integrator Free Plan replaced the former Developer Edition and the Okta CLI was deprecated. Follow current Okta account and console guidance rather than relying on old account-creation or CLI steps.

Generate the Ionic client beside the backend

Install Ionic CLI and the blueprint

From a terminal with the historical Node.js toolchain, install Ionic CLI 5.4.4, Yeoman, and Ionic for JHipster 4.3.0:

Rank #3
Sale
Samsung Galaxy A17 5G Smart Phone 128GB, US 1 Yr Manufacturer Warranty Blue
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.
npm i -g ionic@5.4.4 yo generator-jhipster-ionic@4.3.0

Run the blueprint generator

Make a sibling directory for the client, then run the Yeoman generator from that directory:

yo jhipster-ionic

In the prompts, enter mobile as the client name and provide the path to the backend application as the application location. The intended layout is a backend directory and a mobile client directory next to it. The maintained blueprint also documents invoking a blueprint through JHipster with jhipster --blueprints ionic; for this version-specific workflow, use the generator invocation above.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Connect the client to authentication and run it

Open mobile/src/app/auth/auth.service.ts and set the native Okta application’s client ID where the generated code reads data.clientId. The exact redirect and logout behavior depends on the generated configuration and platform, so keep its URI settings aligned with the values registered in Okta.

Rank #4
Sale
Samsung Galaxy S26 Ultra, Unlocked Android Smartphone, 512GB, Black
  • PRIVACY DISPLAY: Automatically hide your screen from those beside you. The built-in privacy display can be preset¹ to turn on when receiving notifications, typing passwords, or using specific apps
  • TYPE IT IN. TRANSFORM IT FAST: Enhance any shot in seconds on your smartphone by using Photo Assist² with Galaxy AI.³ Add objects, restore details, or apply new styles by simply typing or tapping
  • NIGHTS, CAPTURED CLEARLY: From gigs to city lights, record and capture moments after dark with clarity using Nightography so your photos and videos stay crisp and clear on your Samsung Galaxy
  • MAKE IT. EDIT IT. SHARE IT: Turn everyday moments into something personal with creative tools built right into your mobile phone, whether it’s a special contact photo, custom wallpaper, an invitation or more⁴
  • HELP THAT KEEPS UP: Stay in the moment while Now Nudge with Galaxy AI helps you respond faster and stay organized with smart suggestions⁵ that appear exactly when you need them on your phone

From the client directory, start the browser development server:

cd mobile && ionic serve

Use this run to confirm that the client compiles and can reach the backend. Browser testing is not a substitute for checking the native callback flow: device and emulator authentication use registered native redirect URIs and need to be tested in the target runtime as well.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Generate mobile screens for existing JHipster entities

The Ionic blueprint can generate CRUD pages from entities already defined in the backend. For example, to generate a client for an entity named album, run the entity subgenerator from the Ionic project context:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Tracfone Moto g Play 2024 Prepaid Phone with a 1-Yr Plan Included
  • Carrier: This phone is locked to Tracfone, which means this device can only be used on the Tracfone wireless network. Activating is easy, just 3 steps.
  • ACTIVATION Promotion: Includes 1500 min, 1500 texts & 1500 MB Data + add more as you need it
  • CAMERA SYSTEM: 50MP Quad Pixel camera. Capture sharper, more vibrant photos day or night with 4x the light sensitivity.
  • PERFORMANCE: Blazing-fast Qualcomm performance. Get the speed you need for great entertainment with a Snapdragon 680 processor and 4GB of RAM.
  • 64GB built-in storage. Get plenty of room for photos, movies, songs, and apps. Made for US
yo jhipster-ionic:entity album
  1. Choose the existing backend entity when prompted.
  2. Point the generator to the backend application, such as ../app when your directory layout matches the tutorial’s example.
  3. Review the merge or regeneration prompt before accepting changes. If you have edited generated client files, inspect proposed changes and preserve your custom work.

Repeat the command for other existing entities, such as photo or tag. The generated list, detail, and edit screens call the JHipster API, so changes made through the mobile client can appear in the web application’s entity list when both clients use the same backend and data.

For a project that has not yet modeled its data, JDL can define backend entities before client generation. The historical shortcut described here configures the application authentication and build choices; entity generation remains a separate step that points the Ionic generator at existing backend entities.

Prepare a Cordova build for iOS

  1. From the Ionic project, run ionic cordova prepare ios. Install the iOS platform when prompted.
  2. Open the generated workspace in Xcode.
  3. Configure signing for the simulator or the Apple developer team and device you intend to run.
  4. Select the target simulator or device in Xcode and run the app.

Preparation creates the native project; it does not configure Apple signing on your behalf. Resolve signing and platform compatibility issues in Xcode before treating the app as ready to distribute.

Prepare a Cordova build for Android

  1. Use Java 8 for this historical stack, then run ionic cordova prepare android from the Ionic project. Install the Android platform when prompted.
  2. Open platforms/android in Android Studio. If the IDE prompts for a Gradle upgrade, handle that prompt as part of bringing this older project into the installed Android toolchain.
  3. Set the Android activity’s launchMode to singleTask, as required by the tutorial’s mobile authentication setup.
  4. For an emulator using a backend running on the development computer, forward its API port with adb reverse tcp:8080 tcp:8080.
  5. Run the app from Android Studio on the emulator or connected device and test API access and sign-in.

The port-forward command maps the emulator’s port 8080 to the host’s port 8080. If the backend listens on a different port, this exact command will not connect it; adjust the mapping to the backend’s actual local port.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose browser, PWA, or native delivery

  • Browser development: Use ionic serve to run the client locally while iterating on screens and API calls.
  • PWA: The blueprint README documents adding PWA support with ng add @angular/pwa. This adds a web-app delivery path; it is distinct from building an iOS or Android package.
  • Cordova iOS or Android: Use the platform preparation commands and complete the relevant IDE, signing, and authentication configuration. The documented native workflow is Cordova-based.

Keep the version boundary in view

This workflow is useful for reproducing a JHipster 6 application, but its generator and native-build dependencies come from a 2019-era stack. The maintained blueprint’s compatibility metadata lists JHipster 8.11.0, which signals that current releases have moved beyond the versions in this tutorial. For a new project, follow the current blueprint’s own installation and migration guidance; for an existing project, preserve a known-compatible toolchain and plan upgrades as a separate compatibility task.

Quick Recap

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.