Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 2.33 KB

readme.md

File metadata and controls

54 lines (37 loc) · 2.33 KB

Oslonøkkelen - Keychain push

Test

Users of Oslonøkkelen get access to doors via keychains. Other systems can an API to push keychains to users who have verified their phone number.

Docs

Full documentation: https://oslokommune.github.io/oslonokkelen-keychain-push/

We use Asciidoctor for our documentation. Follow these steps to submit changes. You will need some cli tools installed, but the build tasks will tell you if any of them are missing.

  1. Update the asciidoc files
  2. Generate updated html files by running ./gradlew :oslonokkelen-keychain-push-docs:asciidoc
  3. Commit and push your changes.

Anti bikeshedding

Please install the Ktlint git pre-commit hook to auto format changed files before submitting pull requests to this repository.

./gradlew addKtlintFormatGitPreCommitHook

Modules

:oslonokkelen-keychain-push-docs

Asciidoc documentation. Run ./gradlew :oslonokkelen-keychain-push-docs:asciidoc to render the documentation as html under docs. It depends on having a few chart / diagram utils available on $PATH. The build script should detect if any of those are missing and print instructions on how to install them.

:oslonokkelen-keychain-push-protobuf

Protobuf messages used in the api. Gradle tasks for compiling .proto to .java. Our documentation embeds the protobuf so please remember to re-generate the docs after updating the protobuf api.

:oslonokkelen-keychain-push-client

Kotlin client not tied to a specific http client implementation. You can either use the oslonokkelen-keychain-push-client-ktor implementation for Ktor or provide your own implementation of OslonokkelenKeychainPushClient if you want to use a different http client.

:oslonokkelen-keychain-push-client-ktor

Kotlin / Ktor client implementation.

:oslonokkelen-keychain-push-cli

Simple cli application for testing the api.