Development guide

Developing the cardscan-web library.

Clone the repo and set up the demo

The cardscan repository contains a demonstration app for the CardScan product. To build and install this library follow the following steps:
  1. 1.
    Clone the repository from github
    git clone && cd cardscan-web
  2. 2.
    Install dependencies using NPM
    npm install
  3. 3.
    Build the library using NPM and webpack
    npm run build
    This will create a dist directory with the compiled javascript.
  4. 4.
    Start a local server to host the scanner and demo app
    python -m SimpleHTTPServer 8000
  5. 5.
    Navigate to http://localhost:8000 to view a sample app.