This repository contains example applications built on the digi.me Node.js SDK. There are two example applications in this repository. One showcases private sharing, and the other showcasing push flow. You can find more on our NodeJS SDK documentation.
- Node version 22.12.0 with NPM 10.9.0
- git (optional)
-
Download and extract, or clone the
master
branch on this repo with the following command:git clone https://github.com/digime/digime-sdk-nodejs-example.git
-
In your terminal, navigate to the directory where you cloned/extracted this example (If you see this README in it, you're in the correct place!)
-
Run
npm install
in your terminal -
Run
npm run start:read-example
ornpm run start:write-example
in your terminal to run the read or write example:This should print out something along these lines:
- http://localhost:8081
-
You should now be able to access the example app on http://localhost:8081.
We've provided an example contract ID, application ID and private key for testing out private sharing. In order to obtain your contract ID, application ID and private key please fill out the registration form.
To run read example application, please run the command: npm run start:read-example
-
Navigate to the example app - Once you initialize the flow our SaaS authorization client will be opened where we request for user authorization and user should be permitted to
Swipe to consent
for requested data. -
See data shared - After doing swipe to consent and give access to requested account you should see a list of all the data that was received from the user. You should see the number of items that have been shared, all the objects listed per file, and a description of what kind of data has been listed under each file.
In this example you will see how we are able to push data into a user's digi.me.
To run write example application, please run the command: npm run start:write-example
This example was built upon the digi.me Node.js SDK. You can find more information here.