Skip to content

surfdoc/smart-health-card-verifier

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SMART Health Card Verifier

SMART Health Card Verifier is a safe, privacy-preserving mobile application, designed to verify SMART Health Card certificate encoded in a QR code. The app is launched in both the Play store and iOS store. It is built using React Native with Typescript.

Vaccine Codes and Test Result currently focuses on Covid 19 related, however, if you would like to verify other SHC please share your usecase.

Also there is any code that doesn't verify, please consider supporting us by contributing

Table of contents

Environment

Local test environment setup. This will give you precheck before pushing the code.

cat resources/git_hooks/pre-push > .git/hooks/pre-push

Script

npm run test

Prerequisites

Node v14.17.X (LTS/fermium)

React Native cli

  npm install -g react-native-cli

XCode 13 or later Cocopod

Android Studio Android Studio SDK 30 download through android studio

Environment File setup

copy .env.sample and change it to .env.development for API_KEY, API_URL, for production, please contact a The Commons Project project maintainer.

Platform base setup

For Android make sure you download sdk using android studio SDK 30

  export ANDROID_HOME=$HOME/Android/Sdk
  export PATH=$PATH:$ANDROID_HOME/emulator
  export PATH=$PATH:$ANDROID_HOME/tools
  export PATH=$PATH:$ANDROID_HOME/tools/bin
  export PATH=$PATH:$ANDROID_HOME/platform-tools

create keystore file and set that in the secret.properties

  cd android; keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 
  touch android/secret.properties

In the secret.properties file directly under the android folder, add below.

signing_keystore_location = "<your path to project dir>/smart-health-card-verifier/android/debug.keystore"
signing_keystore_password = "android"
signing_keystore_key_alias = "androiddebugkey"
signing_keystore_key_password = "android"

Install project required dependencies

install dependencies and run the metro server.

  npm install
  
  npm start

For Android

Open another terminal

  npx react-native run-android

This will load any dependent asset that needs to be in the resources folder. Open Android project from ./android folder and if you have phone connected, install the app through Android Studio.

Once you are running on the device,

When it's started, load will fail. Make sure your android phone is on the same network.

Shake device -> see setting -> Change host to :8081

For IOS

Install dependencies

  npm run ios
  cd ios; pod install

Open Xcoe workspace by selecting Verifier.xcworkspace and run.

test

  npm test

How to Contribute

We welcome any contributions for bug fixes and improvements. Below explains how you can be a part of the open source communitiy.

Code of Conduct

The Common Projects has adopted a Code of Conduct that we expect the community to adhere to. Please see the document here so that we can maintain a healthy and collaborative community.

Contributing Guide

See contributing guidelines for more information.

License

Smart Health Card Verifier is MIT licensed is derived from SMART Health Cards Dev Tools by (c) Microsoft Corporation

##Reference VaccineCodes: https://www.cdc.gov/vaccines/programs/iis/COVID-19-related-codes.html

About

A mobile app to verify SMART Health Cards

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 86.3%
  • JavaScript 5.3%
  • Java 3.3%
  • Ruby 2.6%
  • Objective-C 1.9%
  • Shell 0.3%
  • Starlark 0.3%