Skip to content

Commit 3a7d661

Browse files
authored
Merge pull request #422 from docknetwork/DCKA-3440-migrate-examples-to-npm
Dcka 3440 migrate examples to npm
2 parents ba77664 + 3710f79 commit 3a7d661

10 files changed

Lines changed: 66666 additions & 41648 deletions

File tree

examples/nodejs-example/package-lock.json

Lines changed: 15650 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/nodejs-example/readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This is an examples on how to install the Truvera Wallet SDK in a nodejs applica
44
## Installation steps
55

66
```bash
7-
yarn install
7+
npm install
88
```
99

1010
## OID4VC Example
@@ -54,7 +54,7 @@ In a real-world scenario, this credential offer URL would typically be rendered
5454
Now you can run the Wallet SDK example to import the credential into the wallet:
5555

5656
```bash
57-
yarn oid4vc-example <OID4VC_URL>
57+
npm run oid4vc-example <OID4VC_URL>
5858
```
5959

6060
The example above creates an instance of the Wallet SDK, imports the credential into the wallet, and then logs the list of credentials available in the user database. Note that the imported credential is stored locally on the device, and in this Node.js example, it uses SQLite for storage.
@@ -64,7 +64,7 @@ The example above creates an instance of the Wallet SDK, imports the credential
6464
In this example, we will show how to use the SDK to verify a credential.
6565

6666
``` bash
67-
yarn oid4vc-example
67+
npm run oid4vc-example
6868

6969
```
7070

examples/nodejs-example/yarn.lock

Lines changed: 0 additions & 7014 deletions
This file was deleted.

examples/react-native-example/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ React-native project running the Truvera wallet-sdk
44
# Installation
55

66
```bash
7-
nvm use 20.2.0
8-
yarn install
7+
nvm use 22.17.1
8+
npm install --legacy-peer-deps
99

1010
# install pods for iOS
1111
cd ios
@@ -15,13 +15,13 @@ pod install
1515

1616
# Running on android
1717
```bash
18-
yarn start
19-
yarn android
18+
npm start
19+
npm run android
2020
```
2121

2222

23-
# Running on android
23+
# Running on iOS
2424
```bash
25-
yarn start
26-
yarn ios
25+
npm start
26+
npm run ios
2727
```

0 commit comments

Comments
 (0)