GithubHelp home page GithubHelp logo

hartl3y94 / cwa-qr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lukasmalkmus/cwa-qr

0.0 0.0 0.0 0 B

Generate QR-Codes for checking into events using the official Corona Warn App.

License: MIT License

Makefile 28.20% Go 69.47% Dockerfile 2.33%

cwa-qr's Introduction

Corona Warn App QR-Code Generator

Generate QR-Codes for checking into events using the official Corona Warn App.

Go Reference Go Workflow Coverage Status Go Report Latest Release License Docker


Table of Contents

  1. Introduction
  2. Installation
  3. Usage
  4. Contributing
  5. License

Introduction

Corona Warn App QR-Code Generator is a Go client library and command line application for creating QR-Codes which users of the official Corona Warn App can use to check into events.

It is an implementation of the Protocol used to generate event and location QR codes for the Corona Warn App as described in Coronatheir documentation.

This is not an official implementation! Use it at your own risk!

State

Currently, rotating QR-Codes is not implemented. The seed is random every time. This needs to be addressed. Unfortunaly, the documentation is missing context.

Installation

Download and install the pre-compiled binary manually

Binary releases are evailable on GitHub Releases.

Install using Homebrew

$ brew tap lukasmalkmus/tap
$ brew install cwa-qr

To update:

$ brew upgrade cwa-qr

Install using go get

$ go get github.com/lukasmalkmus/cwa-qr

Install from source

$ git clone https://github.com/lukasmalkmus/cwa-qr.git
$ cd cwa-qr
$ make install # Build and install binary into $GOPATH

Run the Docker image

Docker images are available on DockerHub.

$ docker pull lukasmalkmus/cwa-qr
$ docker run lukasmalkmus/cwa-qr

Validate installation

In all cases the installation can be validated by running cwa-qr -version in the terminal:

Corona Warn App QR-Code Generator version 1.0.0

Usage

$ cwa-qr [flags] <output-file>

Most basic usage:

$ cwa-qr event.png

Flags are optional. If not provided, the application questions for input on the command line.

Library usage

import cwaqr "github.com/lukasmalkmus/cwa-qr"

// ...

qrCode, err := cwaqr.GenerateQRCode(cwaqr.Event{
	// ...
})

// Write qrCode to file, etc.

Contributing

Feel free to submit PRs or to fill issues. Every kind of help is appreciated.

Before committing, make should run without any issues.

License

© Lukas Malkmus, 2021

Distributed under MIT License (The MIT License).

See LICENSE for more information.

License Status

cwa-qr's People

Contributors

lukasmalkmus 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.