Code Monkey home page Code Monkey logo

selv-mobile's Introduction

banner

Discord StackExchange Apache 2.0 license

⚠ Please note that this branch won't work for the official Selv experiences, since this branch holds the new and improved version of the Selv mobile app. For an app that is compatible with the official Selv experiences please refer to the main branch.

Run in development mode

1. Install Node.JS

First you need to install Node.JS if you haven’t done that already.

2. Install Yarn

Install Yarn Node.js dependency manager:

curl -o- -L https://yarnpkg.com/install.sh | bash

3. Clone repository

Clone repository by running:

git clone https://github.com/iotaledger/selv-mobile.git

4. Install dependencies

To install the dependencies, run:

yarn

5. Run in development mode

To run the application locally, run:

yarn web

and open http://localhost:3001 in your favourite browser.

Build appliciation

To build the application for iOS or android, some additional dependencies need to be installed.

To start the build process, run yarn ios or yarn android.

How to add custom credentials

This chapter will guide you through the process of adding your own credential types to the Selv-App.

Add Credential Schemas

Add your JSON-Schemas to ui/lib/identity/schemas/index.

Add DID Mapping

You can enrich the display of credentials and presentations by adding enrichments to ui/lib/identity/schemas/index.

You can supply overrides for:

  • issuerLabel: as a string
  • logo: as a string pointing to a file (see the next paragraph)
  • theme: as a HEX string like #FF0000

Add your logo files to ui/assets. Square.png's work best.

Setup a mapping between the logo ID and the path in ui/lib/helpers.

Generate Credentials

You can use the included CLI to generate a credential. Supply the name of schema as defined in "Add Credential Schemas" and a path to your input data.

yarn cli SCHEMANAME path/to/data.json

The CLI will generate a QR-Code encoding the new credential at .cli/credential.svg, which you can scan in the app.

Accept Credentials

Scan the generated QR-Code from the previous step in the app to store it.

Verify Credentials

You can present your stored credentials to another Selv-User to validate it in their app.

selv-mobile's People

Contributors

cvarley100 avatar laumair avatar eike-hass avatar rajivshah3 avatar dependabot[bot] avatar

Watchers

James Cloos avatar  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.