Skip to content

digime/digime-sdk-nodejs-example

Repository files navigation

Developer Chat Typescript Web

Example applications built on the digi.me Node.js SDK.

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.

Preparation

On the machine that will run the example you'll need:

  • Node version 22.12.0 with NPM 10.9.0
  • git (optional)

Installation

  1. 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

  2. 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!)

  3. Run npm install in your terminal

  4. Run npm run start:read-example or npm 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
    
  5. You should now be able to access the example app on http://localhost:8081.

To run the private share example application

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

To run the read example application

  1. 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.

  2. 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.

To run the write example application

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

Checking out our SDK

This example was built upon the digi.me Node.js SDK. You can find more information here.

About

DigiMe javascript SDK example

Resources

Stars

Watchers

Forks

Packages

No packages published