Configure Your Hybrid Mobile Application Development Environment

You can develop hybrid mobile applications using web technologies such as HTML5, CSS, and JavaScript.

After you develop your application using web technologies, you can deploy it to a mobile device using a container technology such as Apache Cordova. Container technologies provide an interface to access native mobile device features like contacts, phone calls, location services, etc.

About Frameworks and Tools Used in Oracle JET

The Oracle JavaScript Extension Toolkit (JET) framework includes support for developing hybrid mobile applications that feature the same user interface theme (Alta) for both iOS and Android. Before creating a hybrid mobile application with Oracle JET, you should understand the tools that Oracle JET provides for scaffolding hybrid mobile applications.

Node.js

Node.js is a JavaScript runtime environment that Oracle JET uses as a package manager to install, and execute different development tools. A package manager, is a collection of software tools that help the process of automating installation and configuration of other software tools. Node.js' package manager is called npm. To learn more about Node.js, visit https://nodejs.org.

Note:

To install all the required tools for Oracle JET hybrid mobile deveolpment, you need to install Node.js first.

Cordova

Apache Cordova is the backbone that Oracle JET uses for creating cross-platform hybrid applications from HTML, CSS and JavaScript. Apache Cordova is a container technology that provides an interface to access native mobile APIs. You don’t need to worry about native SDKs since Cordova handles this part for you. However, you need to have the native SDKs installed since the Apache Cordova API interacts with the mobile platform’s native SDKs. To learn more, visit http://cordova.apache.org/.

Android/iOS SDK

To run the hybrid application on a native device or emulator, you need to install the Oracle Mobile Hub JavaScript SDK for Android or iOS. This SDK allows you to make calls to the client.

Install Node.js

Use Node.js to install the development tools to create hybrid mobile applications with Oracle JET.

To install Node.js:
  1. Download Node.js from https://nodejs.org.
  2. Run the following command to check the version after installation:
    node –version
  3. If you are running behind a corporate firewall, you have to configure Node.js’s proxy settings. In the Node.js console, run:
    npm config set proxy http:/YOUR-COMPANY-URL:80
    npm config set https-proxy https://YOUR-COMPANY-URL:443
    After installing Node.js, you have to use the npm command (Node’s package manager) to install other development tools required by Oracle JET to create hybrid mobile applications.

Install the Oracle JET Tooling Script

To install the Oracle JET tooling script:
  1. In the Node.js command console, run:
    npm install -g @oracle/ojet-cli
  2. To verify if the installation was successful, run this command in your Node.js command console:
    ojet help

Install Cordova

To install Apache Cordova:

  1. Run the following command within your Node.js command console:
    npm install -g cordova
  2. Run this command in your Node.js command console to verify if the install is successful:
    cordova --version