Do you want to know a secret, how to build mobile application just in 2 hours? Use Oracle JET Hybrid. Beauty of Oracle JET Hybrid - you can reuse the same source code (HTML and JS) from regular JET application. JET UI is responsive out of the box and this allows to render JET screens from the Web on mobile device without changes.
We were using our JET 3.0.0 production app - Red Samurai and Oracle PaaS JCS Success - JET/ADF BC REST Cloud Production Application and created mobile app version. This process took around 2 hours.
Below I will list steps required to create JET Hybrid mobile app out of existing JET app.
1. Execute sudo npm -g install cordova to add Cordova to JET tooling
2. Execute sudo yo oraclejet:hybrid --platforms=android to create new JET Hybrid application. Windows and iOS are supported as well
3. Copy HTML and JS files from src folder of JET app into src folder of JET Hybrid app. Structure of JET Hybrid app with HTML and JS files:
4. Execute sudo grunt build --platform=android to compile JET Hybrid app
5. Execute sudo grunt serve --platform=android --destination=device to deploy JET Hybrid app to mobile device. If you are deploying to Android, you need to have Android tools installed on your machine
Dashboard screen on mobile device, built with JET data visualization components:
Customer setup screen contains JET search list and various input components with validation:
JET dialog looks good in mobile too, with input number fields:
JET input date component on mobile screen:
JET table with pagination is rendered very well and is easily usable on the small screen:
I should say - we are very happy with JET Hybrid functionality. It allows to reuse JET application code and build mobile app very fast.
We were using our JET 3.0.0 production app - Red Samurai and Oracle PaaS JCS Success - JET/ADF BC REST Cloud Production Application and created mobile app version. This process took around 2 hours.
Below I will list steps required to create JET Hybrid mobile app out of existing JET app.
1. Execute sudo npm -g install cordova to add Cordova to JET tooling
2. Execute sudo yo oraclejet:hybrid
3. Copy HTML and JS files from src folder of JET app into src folder of JET Hybrid app. Structure of JET Hybrid app with HTML and JS files:
4. Execute sudo grunt build --platform=android to compile JET Hybrid app
5. Execute sudo grunt serve --platform=android --destination=device to deploy JET Hybrid app to mobile device. If you are deploying to Android, you need to have Android tools installed on your machine
Dashboard screen on mobile device, built with JET data visualization components:
Customer setup screen contains JET search list and various input components with validation:
JET dialog looks good in mobile too, with input number fields:
JET input date component on mobile screen:
JET table with pagination is rendered very well and is easily usable on the small screen:
I should say - we are very happy with JET Hybrid functionality. It allows to reuse JET application code and build mobile app very fast.
2 comments:
Most Jet Mobile blogs only take it to the point this one has. Can you provide any discussion about what you're doing to actually deploy this to mobile apps? Are you putting it on iOS? Android? Both? what have you run into with deploying to your platforms?
Hi,
Deployment is simple, you can deploy to any platform with command:
sudo grunt serve --platform=android --destination=device
I give a clear list of steps/commands to deploy on mobile, based on the steps I have executed.
In future posts I will elaborate more on JET Hybrid tips.
Regards,
Andrejus
Post a Comment