Giter Site home page Giter Site logo

nicoduj / cordovavueblinkcrypto Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 360 KB

Sample app demonstrating use of blinkid with cordova, dropbox, cryptoJS and Vue.js (Framework7 template)

JavaScript 46.60% CSS 4.12% HTML 9.57% Vue 39.70%
cordova vuejs blinkid cryptojs

cordovavueblinkcrypto's Introduction

Sample APP demonstrating integration of BlinkID / CryptoJS in a cordova Project

Screenshot

Here is a Screenshot of the demo app. Please be indulgent, the purpose is not to do something that is nice to see :bowtie:

Screenshot

What's in the box

This sample app is based on Framework7 cordova vue js template (cordova-template-framework7-vue-webpack) https://github.com/caiobiodere/cordova-template-framework7-vue-webpack

It includes BlinkId for document Scanning : https://github.com/BlinkID

It also uses the following plugins :

For encryption purpose, it uses cryptoJs Package (https://github.com/brix/crypto-js) and jsrsasign (https://github.com/kjur/jsrsasigncryptojs )

Finally, it uses DropBox SDK JS for storage of images in Dropbox : https://github.com/dropbox/dropbox-sdk-js

The integration of this sdk is based on the following tutorial : http://codingfix.com/save-database-to-dropbox-account-within-cordova-application-3/

Please note that, as of today, this sdk doesn't work when downloading from dropbox in browser environement. I made a fork (https://github.com/nicoduj/dropbox-sdk-js ) and a pull request ( dropbox/dropbox-sdk-js#173 ) with a fix proposal discussed with them. Currently, I made a workaround (see main.vue) using temp link and cordova-plugin-file-transfer.

How to run this sample app

  1. Install Cordova, fetch this repository and navigate to the project directory.
  2. Then, you need to prepare BlinkID plugin. To do that, follow the steps taht are on their github (https://github.com/BlinkID/blinkid-phonegap) :
    • Clone or Download the repository

    • Don't forget to install git-lfs !

    • Initialize the iOS framework:

      cd BlinkID
      ./initIOSFramework.sh
      cd ..
      
    • Add the BlinkID plugin to your project:

      cd <path_to_your_project>
      cordova plugin add <blinkID_plugin_path>
      
    • You can then add your platform, for example :

      cordova platform add ios
      
  3. Finally, you have to create a file named "keys.json" in the src folder, and fill it with your keys.
{
    "BLINK_ID_IOS_LICENSE" : "YOUR_BLINK_ID_KEY_FOR_IOS",
    "BLINK_ID_ANDROID_LICENSE"  : "YOUR_BLINK_ID_KEY_FOR_ANDROID",
    "DROPBOX_CLIENT_ID" : "YOUR_DROPBOX_CLIENT_ID"
 }

cordovavueblinkcrypto's People

Contributors

nicoduj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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