Giter Club home page Giter Club logo

bluecard's Introduction

*This repo is highly-dated and dependencies have known-security vulnerabilities.

Bluecard

Bluecard is a a prototype ID scanning system.

It's designed to replace manual registration workflows, where a clerk is handed a license, and hand-types information contained on it.

Note: this is a prototype. Portions of it are non-functional. It is not ready for production use.

This project was created to:

  1. Learn Django
  2. Explore Amazon's AWS Lambda processing framework
  3. Experiment with the Captricity document processing API

Workflow

Typically registration processes involve a clerk reading a license, and typing the information into an EHR or other proprietary system.

Instead the general workflow is:

  1. The license is scanned or photographed by the clerk, or even by a provider or other care-giver
  2. The license image is stored (in this case in an Amazon S3 bucket)
  3. A program notices the new image and sends it to Captricity (Amazon Lambda)
  4. Data is extracted and stored (Amazon RDS)

Ideally, the data would be extracted and stored by a seperate Lambda process, currently that is partially implemented in the Django layer.

The compute intensive portions of the app are almost entirely offloaded to Amazon and Captricity.

Setup notes

Django expects a config file in config/config.cnf.

Here's an example:

[django]
secret_key = mydjangosecret

[mysql]
database = bluecard
user = bluecard
password = mypassword
default-character-set = utf8
host = my-datastore-or-rds
port = 3306

[aws]
keyid = myamazon
key = key
bucket = 'bluecard'

[captricity]
apitoken = myapitoken

Deploying the Lamda worker

The AWS lambda worker lives in the aws-lambda directory.

Deploying the lambda worker requires building and uploading a ZIP of the aws-lambda directory. See the shell script create-aws-package.sh. This would ideally be automated to avoid having to use the AWS GUI.

The script depends on aws-lambda/config/config.cnf, which can be identical to whats in the main config directory.

bluecard's People

Contributors

justinwiley avatar

Watchers

 avatar James Cloos 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.