README
DscLib
This library was generated with Angular CLI version 10.2.4.
Development
Code scaffolding
Run ng generate component component-name --project dsc-lib
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project dsc-lib
.
Note: Don't forget to add
--project dsc-lib
or else it will be added to the default project in yourangular.json
file.
Build
Run ng build dsc-lib
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
After building your library with ng build dsc-lib
, go to the dist folder cd dist/dsc-lib
and run npm publish
.
Running unit tests
Run ng test dsc-lib
to execute the unit tests via Karma.
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.
Addition
How to setup AppSwitcher:
- use AppData-Manage.postman_collection to manage all Avaible apps in your server-instance
How to setup DxqApiPath:
- in first step the current used ports of the dxqCommonServices are set in \src\dscCore\services\dxqApiPath-util.ts
- in futher this will replaced by docker environment variables
- use in app code as follow (example inventory)
app.module.ts
export function getInventoryConfiguration(): InventoryApiConfiguration {
let defApiConfig: ApiConfiguration = getDefaultApiConfiguration(environment.production, environment.devHost)
return new InventoryApiConfiguration({
basePath: defApiConfig.inventoryApiUrl
});
}
@NgModule({
declarations: [
...
],
imports: [
...
InventoryApiModule.forRoot(getInventoryConfiguration),
...
How to setup AppKey:
- every app must have an AppKey --> configure at follow
app.module.ts under @NgModule - providers
{ provide: APPKEY_CONFIG, useValue: APP_APPKEY_CONFIG },
app.config.ts
export const APP_APPKEY_CONFIG: AppKeyConfig = {
appKey : 'DSC_APP_TYPEDATA'
}