This project was generated with Angular CLI. This application uses Angular version 13.3.9
Source files are located in OSDUApp folder. For each following command, you may need to execute them in this folder.
This application uses informations in json files located in src\config folder.
Here are the informations you will have to provide :
{
...
"data_partition": "osdu_data_partition",
"idp": {
...
"tenant_id": "tenant_id",
"client_id": "client_id",
"redirect_uri": "redirect_uri",
"scope": "scope"
},
"api_endpoints": {
"entitlement_endpoint": "entitlement_endpoint",
"storage_endpoint": "storage_endpoint",
"search_endpoint": "search_endpoint",
"legal_endpoint": "legal_endpoint",
"schema_endpoint": "schema_endpoint",
"osdu_connector_api_endpoint":"osdu_connector_api_endpoint",
"file_endpoint": "file_endpoint",
"graphAPI_endpoint": "graphAPI_endpoint",
"workflow_endpoint": "workflow_endpoint"
}
...
}You need to install Node.JS (https://nodejs.org/). This web application has been tested on Node.JS v14.17.3
Once node is installed on your computer, run npm install.
This application is designed to work with Microsoft Azure. If you want to use another cloud provider you will have to make modifications.
Find deployment instructions and templates here.
Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
ESLint linter (https://eslint.org/) is available. Run ng lint to analyze code.
Prettier (https://prettier.io/) is used as a code formatter. Run npx prettier --write . to format code.
Run ng build to build the project. The build artifacts will be stored in the dist/ directory.
To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.
For the software to function properly, it requires certain permissions via the Microsoft Graph API.
Description: Allows the app to sign in the user and read the profile of signed-in users. It includes their username, display name, profile photo and email address.
Description: Allows the app to read the basic profile of all users in the organization on behalf of the signed-in user. This includes display names, user principal names, and office location. It does not allow for access to personal data, such as emails or phone numbers.
Description: Allows the app to read the full details of all applications, service principals, and related service principal names (SPN) in the directory.
Important: This permission requires Admin Consent. Hence, an Administrator of the organization needs to grant this permission for the software to access the data it needs. Please ensure that you have these permissions set up correctly. If you're an administrator, be aware that the Application.Read.All permission requires your explicit consent for the software to function as intended.
If you still want to test the software without admin consent please go to environment.ts file and remove the permission. This will result in autocomplete (and possibly other functions) not working properly.