Affinidi Demo Browser App powered by Affinidi SDK
This is a react application that has a basic UI with some of the functionalities that Affinidi SDK offers. You can use this app to play around with some of the functionalities offered in the Affinidi SDK and eventually enable SSI for your own application(s).
npm install
Install using npm instead of yarn because the current package-lock.json was generated using npm.
API key is required to use this application. You can get the API key here
Using the API KEY:
-
Option 1: create an
.env
file bycp .env.example .env
and replacing the value in the<<>>
-
Option 2: Add the API key created above to your package.json into the
start
andbuild
commands like this:
......
"scripts": {
"start": "REACT_APP_ENVIRONMENT=prod REACT_APP_API_KEY=........ react-scripts start",
"build": "REACT_APP_ENVIRONMENT=prod REACT_APP_API_KEY=........ react-scripts build",
......
npm run build
Builds the app for production to the build
folder.
Below was generated by Create React App.
Finally, run your own react application powered with SSI capabilities from Affinidi SDK on your local machine.
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.