Dnext Frontend SDK Libraries¶

- Dnext Frontend SDK Libraries
- Development server
- Build
- 📦 Packages
- 🧬 Configuration
- NPM Registry configuration
- 🧬 How to test my changes locally
- Change Log
This project is a collection of Angular libraries that are used in the DNext Services projects. The libraries are divided into multiple packages and each package has its own purpose.
This project was generated with Angular CLI version 18.0.2.
Development server¶
Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.
Build¶
Run ng build or if you want to build specific one you can follow the package.json scripts to build the project. The build artifacts will be stored in the dist/ directory.
📦 Packages¶
The packages: Packages are under the @dnext-angular/...,
The libraries are installed in the node_modules folder and can be imported in the Angular application.
- For example, to install the
@dnext-angular/product-orderinglibrary, run the following command:
🧬 Configuration¶
@dnext-angular/...,
| package name | Configuration variable name | API path |
|---|---|---|
| agreement | agreementManagementApi |
'/api/agreementManagement/v4' |
| product-catalog | productCatalogManagementApi |
'/api/productCatalogManagement/v4' |
| product-ordering | productOrderingManagementApi |
'/api/productOrderingManagement/v4' |
| service-ordering | serviceOrderingManagementApi |
'/api/serviceOrderingManagement/v4' |
| resource-ordering | resourceOrderingManagementApi |
'/api/resourceOrderingManagement/v4' |
| qutoe | quoteManagementApi |
'/api/quoteManagement/v4' |
| pofo | productOrderFulfillmentOrchestrationApi |
'/api/productOrderFulfillmentOrchestration/v1' |
| sofo | serviceOrderFulfillmentOrchestrationApi |
'/api/serviceOrderFulfillmentOrchestration/v1' |
| rofo | resourceOrderFulfillmentOrchestrationApi |
'/api/resourceOrderFulfillmentOrchestration/v1' |
| drapms | rolesAndPermissionsManagementApi |
'/api/rolesAndPermissionsManagement/v5' |
| dbpmms-op | bpmManagementOperateApi |
'/api/bpmManagement/operateManagement/v1' |
| dbpmms-usertask | bpmManagementUserTaskApi |
'/api/bpmManagement/userTaskManagement/v1' |
| dbpmms-form | bpmManagementFormApi |
'/api/bpmManagement/formManagement/v1' |
| dbpmms-userticket | bpmManagementUserTicketApi |
'/api/bpmManagement/backOfficeUserTicketManagement/v1' |
| dtts | troubleTicketApi |
'/api/troubleTicket/v5' |
| dcomms | communicationManagementApi |
'/api/communicationManagement/v4' |
NPM Registry configuration¶
To use the libraries in your Angular application, you need to configure the NPM registry in .npmrc file.
@dnext-angular:registry=https://nexus.orbitant.dev/repository/npm-private/
@dnext-react:registry=https://nexus.orbitant.dev/repository/npm-private/
@dnext:registry=https://nexus.orbitant.dev/repository/npm-private/
//nexus.orbitant.dev/repository/npm-private/:username=rnd-frontend-writer
//nexus.orbitant.dev/repository/npm-private/:_password={{PASSWORD}}
🧬 Build the libraries¶
Example of building the Agreement library:
🧬 How to test my changes locally¶
- Clone the repository
- Run npm install
- Build the agreement library:
- Pack the library: the package will be created in the root folder.
- dnext-angular-agreement-{{version}}.tgz
- In your test application:
- Copy the tarball to
/src/assets - Add to package.json
- "@dnext-angular/agreement": "../src/assets/dnext-angular-agreement-{{version}}.tgz"
- Run
npm install
Change Log¶
All notable changes to this project will be documented in this file. The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Each package have changelog.md file. If we are changed, deleted or added new feature/attribute in this project, we should be add in this file the changes according to ChangeLog standards and version number.