SlideShare a Scribd company logo
1 of 13
1
HIMANSHU MENDIRATTA
Integrate Angular in Portal
Overview
2
IBM has brought several product innovation and advancement with advent of WebSphere Portal in web-
based projects.
In particular, IBM has launched a JavaScript based portlet referred as IBM Script Portlet which would
facilitate easy portlet development in WebSphere Portal server.
Any novice web developer with minimal web development skills like HTML, JavaScript, and CSS can
effortlessly create and deploy their application in WebSphere Portal server.
We will be skipping the Script Portlet as there are many easy available material around that.
Those who want to take a look can open below link :
https://help.hcltechsw.com/digital-experience/8.5/script-portlet/script_portlet.html
Now let’s discuss how we can integrate Angular with Portal. Any JavaScript framework application can
be imported as a JSR-286 portlet and hosted on WebSphere Portal. Since the sample application is
platform agnostic, the same code can be run as a portlet or mobile app, allowing reuse over multiple
devices and platforms with minimal changes. Before that let’s go through the Angular and Portal
prerequisites.
Prerequisites & Key resources
3
1. Sample Angular application
2. API {can run on independent server }
3. Portal API wrapper { wrapper on main API }
4. Custom Portal Theme { Static & Dynamic theme}
5. StaticImageResource module { optional – Static custom theme can be extended but separate
module is recommended }
6. WebSphere Portal version 8.5, CF 09 or higher { earlier version will also support but not tested }
7. Knowledge of Angular framework & routing in angular.
8. Basic knowledge of Portal development & deployment
What is Angular
4
Angular is an application design framework and development platform for creating efficient and
sophisticated single-page apps
Angular is a platform and framework for building single-page client applications using HTML and
TypeScript. Angular is written in TypeScript. It implements core and optional functionality as a set of
TypeScript libraries that you import into your applications.
Workflow of Angular application
5
Portal key component
6
Integration flow
7
Steps to done at Angular End
8
Following steps needs to changed before integrating angular application in Portal
1. Make an entry in app-routing.module.ts for path :’**’
E;g { path: '**', redirectTo: 'entity-dashboard’ }
2. Make sure to use env specific URL for calling API service with constant name such that your generate
main file contains below syntax
this.envir=“PROD",this.apiUrl="https://x.x.x.x:yy/APIService/CustomAPIService"
3. Run ng build -prod to package and compress the application into the /dist folder.
4. Copy dist folder
Steps to done at Portal End
9
Following steps needs to changed before deploying Portlet Application in Portal
1. Create & Deploy an API wrapper as EAR (one time ), sample snippet to communicate with main API
2. Create a basic portlet
3. Create one folder as “resource” under webcontent and copy dist folder files under that
Steps to done at Portal End
10
4. Include angular application generated files using below snippet
<app-root class="edbg"></app-root>
<script src="<%=request.getContextPath()%>/resource/runtime-es2015.cdfb0ddb511f65fdc0a0.js"
type="module"></script>
<script src="<%=request.getContextPath()%>/resource/runtime-es5.cdfb0ddb511f65fdc0a0.js"
nomodule defer></script>
<script src="<%=request.getContextPath()%>/resource/polyfills-es5.9053a67df7ccf4d37537.js"
nomodule defer></script>
<script src="<%=request.getContextPath()%>/resource/polyfills-es2015.728c189c1d716d4d2016.js"
type="module"></script>
<script src="<%=request.getContextPath()%>/resource/main-es2015.c3bca1103db58cd8f684.js"
type="module"></script>
<script src="<%=request.getContextPath()%>/resource/main-es5.c3bca1103db58cd8f684.js"
nomodule defer></script>
Note : file references can be taken from index.html file generated in dist folder.
Steps to done at Portal End
11
5. Now find and replace the paths of below constants inside main.xxxxx.js { both files }
a. path of API call
b. Path of images if any
6. Export the war and your application is ready to be deployed in Portal with all Angular routing rules.
Advantages
12
. The Custom Application has the following advantages:
1. Users have more autonomy and less dependence on central IT for portlet development, which
decreases the time to market.
2. Users need less skill to be productive HCL Portal developers.
3. Users can render existing portlets, such as those developed with HCL Experience Factory or
IBM Rational Application Developer, on a page with portlets by using custom Application.
Thank You
13

More Related Content

What's hot

Introduction to React JS
Introduction to React JSIntroduction to React JS
Introduction to React JSArno Lordkronos
 
React js programming concept
React js programming conceptReact js programming concept
React js programming conceptTariqul islam
 
Getting Started with NgRx (Redux) Angular
Getting Started with NgRx (Redux) AngularGetting Started with NgRx (Redux) Angular
Getting Started with NgRx (Redux) AngularGustavo Costa
 
워터폴에서 애자일로의 전환, 그리고 그 지원 시스템 구성 - 투씨드
워터폴에서 애자일로의 전환, 그리고 그 지원 시스템 구성 - 투씨드워터폴에서 애자일로의 전환, 그리고 그 지원 시스템 구성 - 투씨드
워터폴에서 애자일로의 전환, 그리고 그 지원 시스템 구성 - 투씨드Atlassian 대한민국
 
React JS - A quick introduction tutorial
React JS - A quick introduction tutorialReact JS - A quick introduction tutorial
React JS - A quick introduction tutorialMohammed Fazuluddin
 
Introduction to Kong API Gateway
Introduction to Kong API GatewayIntroduction to Kong API Gateway
Introduction to Kong API GatewayYohann Ciurlik
 
Optimizing Magento by Preloading Data
Optimizing Magento by Preloading DataOptimizing Magento by Preloading Data
Optimizing Magento by Preloading DataIvan Chepurnyi
 
Angular 16 – the rise of Signals
Angular 16 – the rise of SignalsAngular 16 – the rise of Signals
Angular 16 – the rise of SignalsCoding Academy
 
Introduction to ReactJS
Introduction to ReactJSIntroduction to ReactJS
Introduction to ReactJSKnoldus Inc.
 
React JS & Functional Programming Principles
React JS & Functional Programming PrinciplesReact JS & Functional Programming Principles
React JS & Functional Programming PrinciplesAndrii Lundiak
 
How to go about testing in React?
How to go about testing in React? How to go about testing in React?
How to go about testing in React? Lisa Gagarina
 
Observables in Angular
Observables in AngularObservables in Angular
Observables in AngularKnoldus Inc.
 

What's hot (20)

Monolithic architecture
Monolithic architectureMonolithic architecture
Monolithic architecture
 
React js
React jsReact js
React js
 
React + Redux for Web Developers
React + Redux for Web DevelopersReact + Redux for Web Developers
React + Redux for Web Developers
 
Introduction to React JS
Introduction to React JSIntroduction to React JS
Introduction to React JS
 
React js programming concept
React js programming conceptReact js programming concept
React js programming concept
 
Jenkins
JenkinsJenkins
Jenkins
 
Getting Started with NgRx (Redux) Angular
Getting Started with NgRx (Redux) AngularGetting Started with NgRx (Redux) Angular
Getting Started with NgRx (Redux) Angular
 
워터폴에서 애자일로의 전환, 그리고 그 지원 시스템 구성 - 투씨드
워터폴에서 애자일로의 전환, 그리고 그 지원 시스템 구성 - 투씨드워터폴에서 애자일로의 전환, 그리고 그 지원 시스템 구성 - 투씨드
워터폴에서 애자일로의 전환, 그리고 그 지원 시스템 구성 - 투씨드
 
React JS - A quick introduction tutorial
React JS - A quick introduction tutorialReact JS - A quick introduction tutorial
React JS - A quick introduction tutorial
 
Introduction to Kong API Gateway
Introduction to Kong API GatewayIntroduction to Kong API Gateway
Introduction to Kong API Gateway
 
Optimizing Magento by Preloading Data
Optimizing Magento by Preloading DataOptimizing Magento by Preloading Data
Optimizing Magento by Preloading Data
 
Angular 16 – the rise of Signals
Angular 16 – the rise of SignalsAngular 16 – the rise of Signals
Angular 16 – the rise of Signals
 
Introduction to ReactJS
Introduction to ReactJSIntroduction to ReactJS
Introduction to ReactJS
 
React JS & Functional Programming Principles
React JS & Functional Programming PrinciplesReact JS & Functional Programming Principles
React JS & Functional Programming Principles
 
Frontend State management
Frontend State managementFrontend State management
Frontend State management
 
How to go about testing in React?
How to go about testing in React? How to go about testing in React?
How to go about testing in React?
 
Laravel Tutorial PPT
Laravel Tutorial PPTLaravel Tutorial PPT
Laravel Tutorial PPT
 
React Hooks
React HooksReact Hooks
React Hooks
 
Observables in Angular
Observables in AngularObservables in Angular
Observables in Angular
 
Tomcat
TomcatTomcat
Tomcat
 

Similar to Integrate Angular in Portal

The next step from Microsoft - Vnext (Srdjan Poznic)
The next step from Microsoft - Vnext (Srdjan Poznic)The next step from Microsoft - Vnext (Srdjan Poznic)
The next step from Microsoft - Vnext (Srdjan Poznic)Geekstone
 
ASP.NEt MVC and Angular What a couple
ASP.NEt MVC and Angular What a coupleASP.NEt MVC and Angular What a couple
ASP.NEt MVC and Angular What a coupleAlexandre Marreiros
 
Alfresco Development Framework Basic
Alfresco Development Framework BasicAlfresco Development Framework Basic
Alfresco Development Framework BasicMario Romano
 
SAPTechED 2015 UX114 -Building custom SAP Fiori Apps Using SAP Web IDE
SAPTechED 2015 UX114 -Building custom SAP Fiori Apps Using SAP Web IDESAPTechED 2015 UX114 -Building custom SAP Fiori Apps Using SAP Web IDE
SAPTechED 2015 UX114 -Building custom SAP Fiori Apps Using SAP Web IDEMarkus Van Kempen
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET PresentationRasel Khan
 
Bn1001 demo ppt advance dot net
Bn1001 demo ppt advance dot netBn1001 demo ppt advance dot net
Bn1001 demo ppt advance dot netconline training
 
Adding User Management to Node.js
Adding User Management to Node.jsAdding User Management to Node.js
Adding User Management to Node.jsDev_Events
 
White Paper : ASP.NET Core AngularJs 2 and Prime
White Paper : ASP.NET Core AngularJs 2 and PrimeWhite Paper : ASP.NET Core AngularJs 2 and Prime
White Paper : ASP.NET Core AngularJs 2 and PrimeHamida Rebai Trabelsi
 
MyMobileWeb Certification Part I
MyMobileWeb Certification Part IMyMobileWeb Certification Part I
MyMobileWeb Certification Part Icrdlc
 
Introduction to google endpoints
Introduction to google endpointsIntroduction to google endpoints
Introduction to google endpointsShinto Anto
 
Single Page Applications in SharePoint with Angular
Single Page Applications in SharePoint with AngularSingle Page Applications in SharePoint with Angular
Single Page Applications in SharePoint with AngularSparkhound Inc.
 
ASP.NET AJAX with Visual Studio 2008
ASP.NET AJAX with Visual Studio 2008ASP.NET AJAX with Visual Studio 2008
ASP.NET AJAX with Visual Studio 2008Caleb Jenkins
 

Similar to Integrate Angular in Portal (20)

The next step from Microsoft - Vnext (Srdjan Poznic)
The next step from Microsoft - Vnext (Srdjan Poznic)The next step from Microsoft - Vnext (Srdjan Poznic)
The next step from Microsoft - Vnext (Srdjan Poznic)
 
ASP.NEt MVC and Angular What a couple
ASP.NEt MVC and Angular What a coupleASP.NEt MVC and Angular What a couple
ASP.NEt MVC and Angular What a couple
 
Intro to Google Cloud Platform Data Engineering.- Endpoints
Intro to Google Cloud Platform Data Engineering.- EndpointsIntro to Google Cloud Platform Data Engineering.- Endpoints
Intro to Google Cloud Platform Data Engineering.- Endpoints
 
Alfresco Development Framework Basic
Alfresco Development Framework BasicAlfresco Development Framework Basic
Alfresco Development Framework Basic
 
SAPTechED 2015 UX114 -Building custom SAP Fiori Apps Using SAP Web IDE
SAPTechED 2015 UX114 -Building custom SAP Fiori Apps Using SAP Web IDESAPTechED 2015 UX114 -Building custom SAP Fiori Apps Using SAP Web IDE
SAPTechED 2015 UX114 -Building custom SAP Fiori Apps Using SAP Web IDE
 
sveltekit-en.pdf
sveltekit-en.pdfsveltekit-en.pdf
sveltekit-en.pdf
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
 
Bn1001 demo ppt advance dot net
Bn1001 demo ppt advance dot netBn1001 demo ppt advance dot net
Bn1001 demo ppt advance dot net
 
Adding User Management to Node.js
Adding User Management to Node.jsAdding User Management to Node.js
Adding User Management to Node.js
 
Angular 2.0
Angular  2.0Angular  2.0
Angular 2.0
 
White Paper : ASP.NET Core AngularJs 2 and Prime
White Paper : ASP.NET Core AngularJs 2 and PrimeWhite Paper : ASP.NET Core AngularJs 2 and Prime
White Paper : ASP.NET Core AngularJs 2 and Prime
 
flask.pptx
flask.pptxflask.pptx
flask.pptx
 
MyMobileWeb Certification Part I
MyMobileWeb Certification Part IMyMobileWeb Certification Part I
MyMobileWeb Certification Part I
 
Portfolio
PortfolioPortfolio
Portfolio
 
An Overview of Angular 4
An Overview of Angular 4 An Overview of Angular 4
An Overview of Angular 4
 
Introduction to google endpoints
Introduction to google endpointsIntroduction to google endpoints
Introduction to google endpoints
 
【BS1】What’s new in visual studio 2022 and c# 10
【BS1】What’s new in visual studio 2022 and c# 10【BS1】What’s new in visual studio 2022 and c# 10
【BS1】What’s new in visual studio 2022 and c# 10
 
T2 Web Framework
T2 Web FrameworkT2 Web Framework
T2 Web Framework
 
Single Page Applications in SharePoint with Angular
Single Page Applications in SharePoint with AngularSingle Page Applications in SharePoint with Angular
Single Page Applications in SharePoint with Angular
 
ASP.NET AJAX with Visual Studio 2008
ASP.NET AJAX with Visual Studio 2008ASP.NET AJAX with Visual Studio 2008
ASP.NET AJAX with Visual Studio 2008
 

Recently uploaded

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 

Recently uploaded (20)

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 

Integrate Angular in Portal

  • 2. Overview 2 IBM has brought several product innovation and advancement with advent of WebSphere Portal in web- based projects. In particular, IBM has launched a JavaScript based portlet referred as IBM Script Portlet which would facilitate easy portlet development in WebSphere Portal server. Any novice web developer with minimal web development skills like HTML, JavaScript, and CSS can effortlessly create and deploy their application in WebSphere Portal server. We will be skipping the Script Portlet as there are many easy available material around that. Those who want to take a look can open below link : https://help.hcltechsw.com/digital-experience/8.5/script-portlet/script_portlet.html Now let’s discuss how we can integrate Angular with Portal. Any JavaScript framework application can be imported as a JSR-286 portlet and hosted on WebSphere Portal. Since the sample application is platform agnostic, the same code can be run as a portlet or mobile app, allowing reuse over multiple devices and platforms with minimal changes. Before that let’s go through the Angular and Portal prerequisites.
  • 3. Prerequisites & Key resources 3 1. Sample Angular application 2. API {can run on independent server } 3. Portal API wrapper { wrapper on main API } 4. Custom Portal Theme { Static & Dynamic theme} 5. StaticImageResource module { optional – Static custom theme can be extended but separate module is recommended } 6. WebSphere Portal version 8.5, CF 09 or higher { earlier version will also support but not tested } 7. Knowledge of Angular framework & routing in angular. 8. Basic knowledge of Portal development & deployment
  • 4. What is Angular 4 Angular is an application design framework and development platform for creating efficient and sophisticated single-page apps Angular is a platform and framework for building single-page client applications using HTML and TypeScript. Angular is written in TypeScript. It implements core and optional functionality as a set of TypeScript libraries that you import into your applications.
  • 5. Workflow of Angular application 5
  • 8. Steps to done at Angular End 8 Following steps needs to changed before integrating angular application in Portal 1. Make an entry in app-routing.module.ts for path :’**’ E;g { path: '**', redirectTo: 'entity-dashboard’ } 2. Make sure to use env specific URL for calling API service with constant name such that your generate main file contains below syntax this.envir=“PROD",this.apiUrl="https://x.x.x.x:yy/APIService/CustomAPIService" 3. Run ng build -prod to package and compress the application into the /dist folder. 4. Copy dist folder
  • 9. Steps to done at Portal End 9 Following steps needs to changed before deploying Portlet Application in Portal 1. Create & Deploy an API wrapper as EAR (one time ), sample snippet to communicate with main API 2. Create a basic portlet 3. Create one folder as “resource” under webcontent and copy dist folder files under that
  • 10. Steps to done at Portal End 10 4. Include angular application generated files using below snippet <app-root class="edbg"></app-root> <script src="<%=request.getContextPath()%>/resource/runtime-es2015.cdfb0ddb511f65fdc0a0.js" type="module"></script> <script src="<%=request.getContextPath()%>/resource/runtime-es5.cdfb0ddb511f65fdc0a0.js" nomodule defer></script> <script src="<%=request.getContextPath()%>/resource/polyfills-es5.9053a67df7ccf4d37537.js" nomodule defer></script> <script src="<%=request.getContextPath()%>/resource/polyfills-es2015.728c189c1d716d4d2016.js" type="module"></script> <script src="<%=request.getContextPath()%>/resource/main-es2015.c3bca1103db58cd8f684.js" type="module"></script> <script src="<%=request.getContextPath()%>/resource/main-es5.c3bca1103db58cd8f684.js" nomodule defer></script> Note : file references can be taken from index.html file generated in dist folder.
  • 11. Steps to done at Portal End 11 5. Now find and replace the paths of below constants inside main.xxxxx.js { both files } a. path of API call b. Path of images if any 6. Export the war and your application is ready to be deployed in Portal with all Angular routing rules.
  • 12. Advantages 12 . The Custom Application has the following advantages: 1. Users have more autonomy and less dependence on central IT for portlet development, which decreases the time to market. 2. Users need less skill to be productive HCL Portal developers. 3. Users can render existing portlets, such as those developed with HCL Experience Factory or IBM Rational Application Developer, on a page with portlets by using custom Application.