Coder Social home page Coder Social logo

dtlab-labcn / animo-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from animo/animo-demo

0.0 0.0 0.0 5.07 MB

Interactive demo explaining the concepts of self-sovereign identity.

Home Page: https://demo.animo.id

License: Apache License 2.0

Shell 0.03% JavaScript 1.14% TypeScript 97.82% CSS 0.03% HTML 0.54% Dockerfile 0.44%

animo-demo's Introduction


screenshot-demo

Animo Self-Sovereign Identity Demo

Continuous Deployment License TypeScript

โœจ Hi there!

Welcome to the repository of Animo's Self-Sovereign identity demo. This interactive app demonstrates the use of verifiable credentials. This demo is built using Aries Framework Javascript (AFJ). AFJ is a framework written in TypeScript for building SSI Agents and DIDComm services. This demo uses the REST API, which is part of the Aries Framework JavaScript Extensions repository.

๐Ÿ› ๏ธ Usage

Prerequisites

  • NodeJS v16.X.X - Other versions may work, not tested
  • Yarn
  • Git - You probably already have this

๐Ÿ–ฅ Client

Copy the .env.example file to a .env file and set the environment variables.

cd client
cp .env.example .env
Variable Description
REACT_APP_HOST_BACKEND Used in the frontend application to connect with the backend. Should be http://localhost:5000 for development.
REACT_APP_HOST_WEBSOCKET Used in the frontend application to connect with the WebSocket server and listen for events. Should be ws://localhost:5000 for development.

๐ŸŽ›๏ธ Server

Copy the .env.example file to a .env file and set the environment variables.

cd server
cp .env.example .env
Variable Description
AGENT_PUBLIC_DID_SEED Used in the backend application for the agent. Should be set to your agent's public DID in development/production.
AGENT_ENDPOINT Used in the backend application for the agent. Should be set to your agent's endpoint in development/production.
AGENT_WALLET_KEY Used in the backend application for the agent. Should be set to your agent's wallet key in development/production.

Node version

nvm use

Install Dependencies

yarn install

Development

yarn dev

Tests

The demo has Cypress integration tests. To run the tests, make sure you have both the client, server and test agent running locally. You can do this by running the commands yarn dev in the root of the project. You can then start the tests with yarn test. This will open up cypress in chrome from where you can run the tests.

๐Ÿ–‡๏ธ How To Contribute

You're welcome to contribute to this demo. Please make sure to open an issue first!

This demo is open source and you're more than welcome to customize and use it to create your own self-sovereign identity demo. If you do, an attribution to Animo would be very much appreciated!

animo-demo's People

Contributors

janrtvld avatar timoglastra avatar jimezesinachi avatar genaris avatar lauravuo avatar vickysomtee avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.