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
Local test environment setup. This will give you precheck before pushing the code.
cat resources/git_hooks/pre-push > .git/hooks/pre-push
npm run test
- test: Test is run with [jest] (https://jestjs.io/docs) framework.
Node v14.17.X (LTS/fermium)
npm install -g react-native-cli
Android Studio Android Studio SDK 30 download through android studio
copy .env.sample and change it to .env.development for API_KEY, API_URL, for production, please contact a The Commons Project project maintainer.
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 dependencies and run the metro server.
npm install
npm start
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
Install dependencies
npm run ios
cd ios; pod install
Open Xcoe workspace by selecting Verifier.xcworkspace and run.
npm test
We welcome any contributions for bug fixes and improvements. Below explains how you can be a part of the open source communitiy.
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.
See contributing guidelines for more information.
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