Skip to content

Commit

Permalink
feat: readm changes and gradle fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nitin-vavdiya committed Jun 2, 2023
1 parent b90fe94 commit 79d5bf0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
13 changes: 8 additions & 5 deletions README_did_web.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ Following tools the MIW development team used successfully:
1. Run keycloak and database server using [docker-compose.yaml](dev-assets%2Fdid-web%2Fdocker-compose.yaml)
2. Connect database and create miw database and user to access the database
3. Update DB_USER_NAME, DB_PASSWORD, and DB_NAME in [dev.env](dev-assets%2Fdid-web%2Fdev.env)
4. Setup [dev.env](dev-assets%2Fdid-web%2Fdev.env) values either in application.yaml or in IDE
5.
4. Create personal access token(classic) with `read:packages` access (ref: https://github.com/settings/tokens/new)
5. set ORG_GRADLE_PROJECT_githubUserName and ORG_GRADLE_PROJECT_githubToken values
in [dev.env](dev-assets%2Fdid-web%2Fdev.env)
6. Setup [dev.env](dev-assets%2Fdid-web%2Fdev.env) values either in application.yaml or in IDE
7.
Run [ManagedIdentityWalletsApplication.java](src%2Fmain%2Fjava%2Forg%2Feclipse%2Ftractusx%2Fmanagedidentitywallets%2FManagedIdentityWalletsApplication.java)
in IDE
4. Open API doc on http://localhost:8080
5. Click on Authorize on swagger UI and on the dialog click again on Authorize.
6. Login with username=catena-x and password=password
8. Open API doc on http://localhost:8080
9. Click on Authorize on swagger UI and on the dialog click again on Authorize.
10. Login with username=catena-x and password=password

## Test Coverage

Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ repositories {
url = uri("https://repo.danubetech.com/repository/maven-public")
}
maven { url 'https://jitpack.io' }
/*maven {
maven {
url = uri("https://maven.pkg.github.com/catenax-ng/product-lab-ssi")
credentials {
username = "${githubUserName}"
password = "${githubToken}"
}
}*/
}
}

ext {
Expand All @@ -48,7 +48,7 @@ dependencies {
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:${openApiVersion}"
implementation group: 'com.smartsensesolutions', name: 'commons-dao', version: '0.0.2'
implementation 'org.liquibase:liquibase-core'
implementation 'org.eclipse.tractusx.ssi:cx-ssi-lib:0.0.4'
implementation 'org.eclipse.tractusx.ssi.lib:cx-ssi-lib:0.0.4'
runtimeOnly 'org.postgresql:postgresql'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
Expand Down
6 changes: 5 additions & 1 deletion dev-assets/did-web/dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ VC_EXPIRY_DATE=01-01-2025
SUPPORTED_FRAMEWORK_VC_TYPES=cx-behavior-twin=Behavior Twin,cx-pcf=PCF,cx-quality=Quality,cx-resiliency=Resiliency,cx-sustainability=Sustainability,cx-traceability=ID_3.0_Trace
KEYCLOAK_REALM=miw_test
KEYCLOAK_CLIENT_ID=miw_private_client
AUTH_SERVER_URL:http://localhost:8081
AUTH_SERVER_URL:http://localhost:8081

## Github user name
ORG_GRADLE_PROJECT_githubUserName=
ORG_GRADLE_PROJECT_githubToken=
4 changes: 2 additions & 2 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ management:
enabled: true

miw:
host: ${MIW_HOST_NAME:localhost}
host: ${MIW_HOST_NAME:1d90-203-129-213-107.ngrok-free.app}
encryptionKey: ${ENCRYPTION_KEY:Woh9waid4Ei5eez0aitieghoow9so4oe}
authorityWalletBpn: ${AUTHORITY_WALLET_BPN:BPNL000000000000}
authorityWalletName: ${AUTHORITY_WALLET_NAME:Catena-X}
authorityWalletDid: ${AUTHORITY_WALLET_DID:localhost:BPNL000000000000}
authorityWalletDid: ${AUTHORITY_WALLET_DID:1d90-203-129-213-107.ngrok-free.app:BPNL000000000000}
vcContexts: ${VC_SCHEMA_LINK:https://www.w3.org/2018/credentials/v1, https://raw.githubusercontent.com/catenax-ng/product-core-schemas/main/businessPartnerData}
vcExpiryDate: ${VC_EXPIRY_DATE:01-01-2025} #dd-MM-yyyy ie. 01-01-2025 expiry date will be 2024-12-31T18:30:00Z in VC
supportedFrameworkVCTypes: ${SUPPORTED_FRAMEWORK_VC_TYPES:cx-behavior-twin=Behavior Twin,cx-pcf=PCF,cx-quality=Quality,cx-resiliency=Resiliency,cx-sustainability=Sustainability,cx-traceability=ID_3.0_Trace}
Expand Down

0 comments on commit 79d5bf0

Please sign in to comment.