bcgov / BC-Wallet-Demo

Demo of Verifiable Credentials Using the BC Wallet

Home Page:https://digital.gov.bc.ca/digital-trust/showcase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

License Lifecycle:Maturing

BC Wallet Demo

Overview

This application provides a showcase for the BC Wallet to illustrate the use cases for verifiable credentials. This application will take users through multiple steps to demonstrate how verifiable credentials are issued and verified using the BC Wallet.

Running

Copy env files

Copy the files server/.env.example and client/.env.example to server/.env and client/.env
Edit the .env files to match your project needs

Option 1 - Native

Please make sure you have a recent version of node, npm, and yarn installed These steps are executed from the root folder of the project:

yarn install

yarn dev

The application will now be running at http://localhost:3000

Option 2 - Docker

These steps assume that you have docker installed

These steps are executed from the root folder of the project:

Build the client:

docker build -t bc-wallet-demo-client . -f DockerfileClient

Build the server:

docker build -t bc-wallet-demo-server . -f DockerfileServer

Start the server:

docker run --name bc-wallet-demo-server -p5000:5000 --rm --env-file server/.env bc-wallet-demo-server

Start the client:

docker run --name bc-wallet-demo-client -p3000:3000 -v `pwd`/Caddyfile:/etc/caddy/Caddyfile --rm --env-file client/.env bc-wallet-demo-client

The application will now be running at http://localhost:3000

Contributing

Pull requests are always welcome!

Please see the Contributions Guide for the repo.

Before contributing please run yarn lint --fix and fix any linter warnings in your code contribution.

You may also create an issue if you would like to suggest additional resources to include in this repository.

All contrbutions to this repository should adhere to our Code of Conduct.

About

Demo of Verifiable Credentials Using the BC Wallet

https://digital.gov.bc.ca/digital-trust/showcase

License:Apache License 2.0


Languages

Language:TypeScript 96.5%Language:JavaScript 2.1%Language:HTML 0.8%Language:Dockerfile 0.3%Language:Shell 0.1%Language:CSS 0.1%