Update OSDU Angular Code Setup, Installation and Deployment authored by Sourabh Roy's avatar Sourabh Roy
...@@ -37,6 +37,20 @@ ...@@ -37,6 +37,20 @@
![angularcli](uploads/d547c049fbaa525f07bc12018e1a1914/angularcli.PNG) ![angularcli](uploads/d547c049fbaa525f07bc12018e1a1914/angularcli.PNG)
</ul> </ul>
<ul> <ul>
<li>
Once the code setup is completed install few packages by providing the below command lines in the terminal one by one:
<ul>
<li>
ng add @ng-bootstrap/ng-bootstrap
</li>
<li>npm install --save</li>
<li>npm install ng-multiselect-dropdown</li>
<li> @ng-select/ng-select</li>
<li>npm install bs-stepper --save</li>
</ul>
</li>
</ul>
<ul>
<li>Now expand the folder <b>src</b> from side nav and then expand <b>assets folder</b> and then select <b>config folder</b>. You will find 2 json files inside config folder, one named as <b>config,dev.json</b> and other as <b>config.prod.json</b>. For the dev release update the cloud provider details like auth_token url, client id, client secret, etc in config.dev.json file. But if you are doing a production deployment then update these details in config.prod.json file. Inside config.dev.json update all the fields for your respective idp (<strong>auth_url,token_url,</strong><strong> logout_uri, client_id, client_secret, scope, data_partition, entitlement_endpoint, storage_endpoint, search_endpoint, legal_endpoint</strong>). For example, If your respective idp is AWS then update the details for the object where cloud_name field is &ldquo;aws&rdquo;. Once all the details are updated, change &ldquo;in_use&rdquo; key value as true for your respective ipd&rsquo;s json object. Make sure that the &ldquo;in_use&rdquo; key value is set as false for all other cloud provider objects.</li> <li>Now expand the folder <b>src</b> from side nav and then expand <b>assets folder</b> and then select <b>config folder</b>. You will find 2 json files inside config folder, one named as <b>config,dev.json</b> and other as <b>config.prod.json</b>. For the dev release update the cloud provider details like auth_token url, client id, client secret, etc in config.dev.json file. But if you are doing a production deployment then update these details in config.prod.json file. Inside config.dev.json update all the fields for your respective idp (<strong>auth_url,token_url,</strong><strong> logout_uri, client_id, client_secret, scope, data_partition, entitlement_endpoint, storage_endpoint, search_endpoint, legal_endpoint</strong>). For example, If your respective idp is AWS then update the details for the object where cloud_name field is &ldquo;aws&rdquo;. Once all the details are updated, change &ldquo;in_use&rdquo; key value as true for your respective ipd&rsquo;s json object. Make sure that the &ldquo;in_use&rdquo; key value is set as false for all other cloud provider objects.</li>
![config](uploads/2d94bcaddf3cf3190e03de4766899e9a/config.PNG) ![config](uploads/2d94bcaddf3cf3190e03de4766899e9a/config.PNG)
</ul> </ul>
... ...
......