Use the Oracle JET command-line interface (CLI) to scaffold an app that contains a blank template or one pre-configured Starter Template with a basic layout, navigation bar, or navigation drawer. Each Starter Template is optimized for responsive web apps. Additionally, Starter Templates support TypeScript development should you wish to create your app in TypeScript. After scaffolding, you can modify the app as needed.
Before you can create your first Oracle JET web app using the CLI, you must also install the prerequisite packages if you haven’t already done so. For details, see Install Oracle JET Tooling.
To scaffold an Oracle JET web app:
1) At a command prompt, enter ojet create with optional arguments to create the Oracle JET app and scaffolding.
ojet create [directory]
[--template={template-name:[web]|template-url|template-file}]
[--typescript]
[--use-global-tooling]
[--help]
For example, the following command creates a web app in the my-web-app directory using the web version of the navbar template:
ojet create my-web-app --template=navbar
To scaffold the web app using the same Starter Template but with support for TypeScript version 4.8.4 development, add the --typescript argument to the command:
ojet create my-web-app --template=navbar --typescript
To scaffold the web app that will use the globally-installed @oracle/oraclejet-tooling rather than install it locally in the app directory, enter the following command:
ojet create my-web-app --use-global-tooling
2) Wait for confirmation.
The scaffolding will take some time to complete. When successful, the console displays:
Oracle JET: Your app is ready! Change to your new app directory my-web-app and try ojet build and serve...
3) In your development environment, update the code for your app.