Skip to content

This demo shows how to use Trinsic's Provider API to manage organizations under your Trinsic account.

Notifications You must be signed in to change notification settings

tribe-health/provider-reference-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trinsic's Provider Reference App

This demo shows how to use Trinsic's Provider API to manage organizations under your Trinsic account. It is a Node.js Express app which makes Trinsic Provider API calls with our service client.

Use Case

This sample is to simulate a dashboard to manage organizations in your Trinsic Studio account.

Prerequisites:

Setup

Download project and install dependencies

  1. Clone the repository
  • git clone https://github.com/streetcred-id/provider-reference-app
  1. Navigate into the directory
  • cd provider-reference-app
  1. Install the dependencies
  • npm install
  1. Open up the project in a code editor of your choice
  2. Rename the .env-template file to .env empty .env

Retrieve your Provider Key

  1. Go to Trinsic Studio and login or create an account.
  2. Click on the account dropdown in the top-right of the screen and select the Provider Keys link.
  3. Click the + NEW KEY button and enter a name for the key. Then click on the CREATE button. token screen
  4. COPY THE KEY and paste it into the PROVIDER_TOKEN value in the .env file. You will not be able to see this key once the slider is closed, so be sure to copy it.

Run the web app

Start and use the application

  1. Run with npm. npm start
  2. Open the web app on localhost:3000. fill in passport
  3. Enter a name for a new organization, select a network, and click CREATE ORGANIZATION.
    • It might take a few seconds to create the organization and refresh the table on the right.
  4. Copy an organization Access Token to the clipboard by clicking on the token.
  5. Assign an organization a new Access Token by clicking on its refresh button.
  6. Delete an organization by clicking on its red trash button.

Contact [email protected] for any questions.

About

This demo shows how to use Trinsic's Provider API to manage organizations under your Trinsic account.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •