OJET Activity Guide
OJET Activity Guide
Oracle JET
Table of Contents
Practical Overview
No Practical
Practical Lesson 3: Understanding OJET
Architecture
No Practical
Practical Lesson 4: Building simple OJet-JS application with
components
Overview
In this Practical we create a simple form application .
Where user can Enter their Information like Name and Password etc.
Prerequisites:
1. Basic knowledge of HTML, CSS, and JavaScript.
2. Familiarity with Oracle JET components and Knockout.js.
3. A code editor of your choice (e.g., Visual Studio Code, Sublime Text, etc.).
4. Internet connectivity to download required packages and dependencies.
Steps:
Now once you are done with all these step OJET will Automatically create all the
required files and it will import necessary Modules.
Step -3
b. all the coding we will be doing inside this src Folder.Lets see how its looks like.
Main file contains all the required libraries and views contains all the HTML files and
viewModels contains all the logic/ Javascript code for views files.
Step -4 Now we have got an understanding about the project structure of the OJET
application now lets start doing coding .
Description:
In this activity, you will create a Web page where you can navigate between
different other pages of the application.
Prerequisites:
- Basic knowledge of HTML, CSS, JavaScript, Oracle JET, and Knockout.js.
- A code editor to write and test your code.
1. If you haven't already, create a new Oracle JET project by following the
mentioned steps in the image.
2. Ensure that you have the necessary Oracle JET components and
dependencies installed by running:
Step -2
Now once you are done with all these step OJET will Automatically create all
the required files and it will import necessary Modules.
Step -3
Main file contains all the required libraries and views contains all the HTML
files and viewModels contains all the logic/ Javascript code for views files.
Step -4 Now we have got an understanding about the project structure of the
OJET application now lets start doing coding .
Open terminal
Step -23 Now we are done with the logic so lets Run the Application.
cd myFIrstApp
Practical Overview
In this Activity, we will perform read, delete, update, and create operations on
data.
Prerequisites:
1. If you haven't already, create a new Oracle JET project by following the
mentioned steps in the image.
2. Ensure that you have the necessary Oracle JET components and
dependencies installed by running:
Step -2
Now once you are done with all these step OJET will Automatically create all
the required files and it will import necessary Modules.
Step -3
Main file contains all the required libraries and views contains all the HTML
files and viewModels contains all the logic/ Javascript code for views files.
Step -4 Now we have got an understanding about the project structure of the
OJET application now lets start doing coding .
cd myFIrstApp
and use command ojet serve to Run it
Description:
In this activity, you will enhance the user registration form from Lesson 6 by
implementing Restfull Services using Oracle JET. The form will include various
fields for personal information, Country, and State. You will validate user input to
ensure that all required fields are filled correctly before submitting the form.
Prerequisites:
- Basic knowledge of HTML, CSS, JavaScript, Oracle JET, and Knockout.js.
- A code editor to write and test your code.
b. all the coding we will be doing inside this src Folder.Lets see how its looks like.
Main file contains all the required libraries and views contains all the HTML files
and viewModels contains all the logic/ Javascript code for views files.
Step -4 Now we have got an understanding about the project structure of the
OJET application now lets start doing coding .
For this we have to open this Folder into VS code.
Step -5 Open VS code , search and click Enter
Step -6 Now select your Folder. Go to file icon and select open Folder.
Step -7 Select your Folder.
When you will open the Folder in VS code it will look like this.
Step-8 Now open Customer.html file
Go to src-> js-> views-> Customers.html and open it
Step -9 Go to src-> js-> viewsModels-> Customers.js and open it
Step 10- now go to inside the js folder and create a new Folder named as service
Step -11 now inside this folder create a new file name it as CustomersServices.js
Step -12 now once you are done with the file creation its time to add logic in the
file.
Step -13 now open Terminal and run these commands as mentioned to configure
json server.
Step-14 inside your project main directory create a new folder and name it as db
Step-15 inside this Folder create a new file and name it as db.json
Step -23 Now we are done with the logic so lets Run the Application.
Follow these steps to Run the Application
a. open cmd and navigate to your project directory
cd myFIrstApp
Step-24 now go to console and check data is created or not. Right click on page
and go to inspect option
Activity: Implementing Input Validation for a Registration Form using Oracle JET
Description:
In this activity, you will enhance the user registration form from Lesson 6 by
implementing input validation using Oracle JET. The form will include various
fields for personal information, contact details, and confirmation. You will validate
user input to ensure that all required fields are filled correctly before submitting
the form.
Prerequisites:
- Basic knowledge of HTML, CSS, JavaScript, Oracle JET, and Knockout.js.
- A code editor to write and test your code.
b. all the coding we will be doing inside this src Folder.Lets see how its looks like.
Main file contains all the required libraries and views contains all the HTML files
and viewModels contains all the logic/ Javascript code for views files.
Step -4 Now we have got an understanding about the project structure of the
OJET application now lets start doing coding .
For this we have to open this Folder into VS code.
Step -5 Open VS code , search and click Enter
Step -6 Now select your Folder. Go to file icon and select open Folder.
Step -7 Select your Folder.
When you will open the Folder in VS code it will look like this.
Step-8 Now open Customer.html file
Go to src-> js-> views-> Customers.html and open it
Step -9 Now open Customers.js File.
Go to src-> js-> viewModels-> Customers.js and open it
Step -10 Now we are done with the logic so lets Run the Application.
Follow these steps to Run the Application
a. open cmd and navigate to your project directory
cd myFIrstApp
Theming application
Practical Overview
Activity: Create a Responsive Web Page Layout using Oracle JET Theming
Description:
In this activity, you will create a responsive web page layout using Oracle JET
theming features. The layout will adapt and display appropriately on different
devices and screen sizes. You will use Oracle JET's theming capabilities to
customize the appearance of the web page and make it visually appealing.
Prerequisites:
- Basic knowledge of HTML, CSS, JavaScript, and Oracle JET theming.
- A code editor to write and test your code.
Instructions:
b. all the coding we will be doing inside this src Folder.Lets see how its
looks like.
Main file contains all the required libraries and views contains all the
HTML files and viewModels contains all the logic/ Javascript code for
views files.
Step -4 Now we have got an understanding about the project structure of
the OJET application now lets start doing coding .
For this we have to open this Folder into VS code.
Step -5 Open VS code , search and click Enter
Step -6 Now select your Folder. Go to file icon and select open Folder.
Step -7 Select your Folder.
When you will open the Folder in VS code it will look like this.
Step-8 Now open Customer.html file
Go to src-> js-> views-> Customers.html and viewModels->customers.js
and open it
Step -10 Now we are done with the logic so lets Run the Application.
Follow these steps to Run the Application
a. open cmd and navigate to your project directory
cd myFIrstApp
Practical Overview
In this practical, we will configure the mocha chai testing framework to perform
testing in the ojet application.
Prerequisites:
- Basic knowledge of HTML, CSS, JavaScript, Oracle JET, and Knockout.js.
- A code editor to write and test your code.
2. Ensure that you have the necessary Oracle JET components and
dependencies installed by running:
Go to the new folder icon and write the name as test of the folder.
Step-7 now inside this folder create a new javascript file and name its as
myComponent.test.mjs
Step-8 after you have created the file lets add the code in this file .
Step-9 now go to src->js->viewModels and here create a new file and name it as
myComponentViewModel.js
You can find this file in the main directory of your project
Step-11 Now after doing all these changes lets go to terminal
And run this command to execute the test case.
Practical Lesson 11: Building and Deploying Ojet Application
Practical Overview
Prerequisites:
- Basic knowledge of HTML, CSS, JavaScript, Oracle JET, and Knockout.js.
- A code editor to write and test your code.
2. Ensure that you have the necessary Oracle JET components and
dependencies installed by running: