Thursday, October 11, 2018

OJET8: How to create OJet Project

OJET8: How to create OJet Project

Step1:

Install NodeJS -> https://nodejs.org/en/  -> Download

Note: OJET project will not run on NodeJS server, we just use the NodeJS-NPM capabilities for installations

verify NodeJS installation
-------------------------
In command prompt ->
node --version
npm --version




Step2:
In command prompt ->
npm install -g @oracle/ojet-cli

Note : If proxy issue comes then only do below commands

npm config rm proxy

npm config set strict-ssl false

npm config set registry "http://registry.npmjs.org/"

npm config set proxy "http://www-proxy.us.oracle.com:80"

npm config set https-proxy "http://www-proxy.us.oracle.com:80"

verify OJET installation
-------------------------
ojet --version



####################################################################################

2 ways we can create OJET Project
--------------------------------------------
1> Through command line -> open command prompt -> cd to any folder -> give command line as "ojet create FirstApp --template=navbar"

2> Netbean IDE -> File -> New Project -> in "HTML5/Javascript" -> Select "Oracle JET Base Distribution" -> give Project Name "MyFirstOJETProject" -> Finish

####################################################################################

We will see Through command line
---------------------------------------------

ojet create FirstApp --template=navbar
For more commands - https://www.oracle.com/webfolder/technetwork/jet/globalGetStarted.html

cd FirstApp

ojet build

ojet serve











We will add new Tab and build and run again







No comments:

Post a Comment

Custom Java Logic

Custom Java Logic 1. Remove Particular Html tag from String. Requirement - Remove <font> tags, even if it has multiple then rem...