GithubHelp home page GithubHelp logo

tuanndwork / nzcovidtracer-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from minhealthnz/nzcovidtracer-app

0.0 0.0 0.0 10.78 MB

This is the repository for the front-end of the NZ COVID Tracer app.

Home Page: https://www.health.govt.nz/nz-covid-tracer

License: Other

Shell 0.54% JavaScript 9.89% Ruby 0.33% Objective-C 0.68% Java 0.58% Kotlin 3.22% TypeScript 83.92% Swift 0.80% Starlark 0.05%

nzcovidtracer-app's Introduction

NZ COVID Tracer

This is the repository for the NZ COVID Tracer app.

NZ COVID Tracer is a Ministry of Health app that allows you to create a digital diary of places you visit by scanning the official QR codes. This gives contact tracers a headstart with identifying anyone who may have been exposed to COVID-19 so we can quickly break the chain of transmission.

You can download the app for:

Contributing

We are not currently accepting issue reports or pull requests on GitHub.

Development setup

Dependencies

  1. yarn
  2. XCode / Android Studio
  3. cocoapods
  4. prettier extension (latest version) installed on code editor (preferably VSCode)
  5. Javac version 1.8 (check by javac -version)

Env variables

This project uses react-native-config
To create a env file, run cp .env.example .env

Generating an encryption key for Realm Db (Optional)

Generate 64 random bytes, copy the bytes in hexadeicmal format Go to Binary to Base64, choose Hexadecimal format and convert it to text Go to .env file, configure DbEncryptionKey with the key

Pre-build

Keep the below changes in your local dev only. Do not push it in the branch.

  • Create a .env file in the root directory and insert the correct variables as shown in the example env file.
  • Insert the correct serects in the scripts/inject-secrets bash file.
  • sh scripts/inject-secrets.sh .
  • yarn install
  • cd ios
  • bundle exec pod install
  • cd ../

Run the app

yarn install
yarn ios --scheme 'UniteAppRN-ENF'

Known issues

  • If you have linking issues for Xcode 12 and above, please fix them by the file reference workaround.
  • Ensure that the versions match.
    • javac -version --> 1.8 (important).
    • node -v --> currently @ 14.16.1.
  • Cannot find default.realm on running Jest
    • Delete default.realm.lock file from root and try again.
  • Snapshot testing failing as it cannot match.
    • Update the snapshot tests by running yarn test -u

E2E tests

End to end tests are implemented with cavy

Start the app for e.g. yarn ios, and make sure both the app and the bundler are running Start the test server yarn e2e:dev Tests should now be running at every reload See tests under ./specs

nzcovidtracer-app's People

Contributors

nzcovidtracer-dev 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.