Ionic for JHipster ✨
APACHE-2.0 License
Bot releases are visible (Hide)
syncWithIdp
from sample by @mshima in https://github.com/jhipster/generator-jhipster-ionic/pull/1121
experimentalSessionAndOrigin
from Cypress configuration by @mraible in https://github.com/jhipster/generator-jhipster-ionic/pull/906
Full Changelog: https://github.com/jhipster/generator-jhipster-ionic/compare/v8.1.0...v8.2.0
Published by mraible over 1 year ago
Full Changelog: https://github.com/jhipster/generator-jhipster-ionic/compare/v8.0.0...v8.1.0
Published by release-drafter[bot] over 2 years ago
ng test
to use Jest (#668) @mshimaFull Changelog: https://github.com/jhipster/generator-jhipster-ionic/compare/v7.1.0...v8.0.0
Published by release-drafter[bot] about 3 years ago
See this project's documentation for installation and usage instructions.
Published by release-drafter[bot] over 3 years ago
Install Ionic for JHipster:
npm i -g generator-jhipster-ionic yo
In a directory alongside your JHipster app, create your Ionic app with yo jhipster-ionic
.
- jhipster-app
- <run it here>
To add PWA support to your Ionic app, run:
ng add @angular/pwa
To import your JHipster app's JDL, run yo jhipster-ionic:import-jdl <path-to-jhipster-app>/entities.jdl
.
Generate a native iOS project with the following commands:
ionic build
ionic capacitor add ios
Add your custom scheme to ios/App/App/Info.plist
:
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>com.getcapacitor.capacitor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>capacitor</string>
<string>dev.localhost.ionic</string>
<string>com.okta.dev-737523</string>
</array>
</dict>
</array>
Then, run your project using the Capacitor CLI:
npx cap run ios
In order to communicate with your JHipster app, you'll need to modify its CORS settings (in src/main/resources/config/application-dev.yml
) to allow capacitor://localhost
as an origin.
Generate a native project with the following commands:
ionic build
ionic capacitor add android
Change the custom scheme in android/app/src/main/res/values/strings.xml
to use dev.localhost.ionic
or your reverse domain name:
<string name="custom_url_scheme">com.okta.dev-737523</string>
The SafariViewController Cordova Plugin is installed as part of this project. Capacitor uses AndroidX dependencies, but the SafariViewController plugin uses an older non-AndroidX dependency. Use jetifier to patch usages of old support libraries with the following commands:
npm install jetifier
npx jetify
npx cap sync android
Then, run your project using the Capacitor CLI:
npx cap run android
In order to communicate with your JHipster app, you'll need to modify its CORS settings (in src/main/resources/config/application-dev.yml
) to allow http://localhost
as an origin.
See this project's documentation for more information.
Published by release-drafter[bot] over 3 years ago
Published by release-drafter[bot] over 3 years ago
To get started with Ionic for JHipster, create a backend with JHipster, and install the following libraries:
npm install -g @ionic/cli generator-jhipster-ionic yo
Then, run this module to create your Ionic app:
yo jhipster-ionic
This module expects you to already have a JHipster app created. For example:
mkdir -p apps/backend
cd apps/backend
jhipster jdl blog-oauth2
cd ..
yo jhipster-ionic default
cd ionic4j
yo jhipster-ionic:import-jdl ../backend/blog-oauth2.jdl
Then, run your app with ionic serve
. Make sure everything works with npm run e2e
.
See the iOS and Android docs to see how to test your app on a device.
Published by mraible about 4 years ago
To get started with Ionic4J, create a backend with JHipster, and install the following libraries:
npm install -g @ionic/cli generator-jhipster-ionic yo
Then, run this module to create your Ionic app:
yo jhipster-ionic
This module expects you to already have a JHipster app created. For example:
mkdir -p apps/backend
cd apps/backend
jhipster jdl blog-oauth2
cd ..
yo jhipster-ionic
cd ionic4j
yo jhipster-ionic:import-jdl ../backend/blog-oauth2.jdl
Then, run your app with ionic serve
.
See the iOS and Android docs to see how to test your app on a device.
Published by mraible about 4 years ago
To get started with Ionic4J, create a backend with JHipster, and install the following libraries:
npm install -g @ionic/cli generator-jhipster-ionic yo
Then, run this module to create your Ionic app:
yo jhipster-ionic
This module expects you to already have a JHipster app created. For example, let's say you have backend/app.jdl
for creating JHipster.
mkdir -p apps/backend
cd apps/backend
jhipster import-jdl app.jdl
cd ..
yo jhipster-ionic
cd ionic4j
yo jhipster-ionic:import-jdl ../backend/app.jdl
Published by mraible over 4 years ago
/implicit
from redirect URIs because authorization code flow + PKCE is usedTo get started with Ionic4J, create a backend with JHipster and install the following libraries:
npm install -g @ionic/cli generator-jhipster-ionic yo
Then, run this module to create your Ionic app:
yo jhipster-ionic
Published by mraible over 4 years ago
.ejs
To get started with Ionic4J, create a backend with JHipster first. Then install the necessary libraries:
npm install -g @ionic/cli generator-jhipster-ionic yo
Then, run the following to create your Ionic app:
yo jhipster-ionic
NOTE: By default, JHipster's Keycloak is configured to have a 5-minute access token lifetime. I've noticed that this makes it so you have to re-authenticate when you refresh the page (if you're using OAuth 2.0). To make it longer, log in to http://localhost:9080/auth
, then go to Realm Settings > Tokens and change the Access Token Lifespan. This could also be caused by dynamic configuration. I'm not sure. 🙂
Published by mraible over 4 years ago
skipClient: true
in the JHipster app stops entity generator from workingPublished by mraible over 4 years ago
Published by mraible over 4 years ago
Published by mraible over 4 years ago
See our docs and start developing with Ionic and JHipster!
Published by mraible almost 5 years ago
This release fixes an issue with import-jdl
and updates dependencies.
Published by mraible almost 5 years ago
Fixes #199 so import-jdl
does not prompt the user for backend location.
Published by mraible almost 5 years ago
Fixed OAuth 2.0 and prettier. Also upgraded JHipster to 6.4.1 and WebDriver to work with Chrome 78.
Published by mraible about 5 years ago
Updated dependencies and added compatibility with latest Ionic CLI (v5.4.1).
Published by mraible about 5 years ago
This release packs a punch!
import-jdl
supportionic4j
CLI:
ionic4j
to generate a new appionic4j entity <name>
generates entitiesionic4j import-jdl <file.jdl>
imports JDL and generates entitiesYou can install Ionic for JHipster using npm.
npm i -g generator-jhipster-ionic