LoyaltyCard is a web application to generate a combined loyalty/club card.
I loved the (now-offline) "JustOneClubCard" application. I had created a couple of combined cards that I carried with me everywhere.
Phone-based loyalty card applications have never worked for me. About half the time, the phone is too reflective or the scanner just can't pick up the data. A card works every time. Since "JustOneClubCard" went out, I decided to tinker with client-side PDF generation and some other stuff and create this little app.
LoyaltyCard is released under an MIT License.
LoyaltyCard makes use of the following libraries and services:
- jQuery because JQUERY. (MIT License)
- jsPDF for generating the card PDF. (MIT License)
- Bootstrap for UI widgetry. (MIT License)
- Holder.js for little preview placeholders. (MIT License)
- TEC-IT Barcode Software for creating the barcode images.
Running the LoyaltyCard app requires a web site running .NET (e.g., IIS Express) because, to generate the client-side PDF, I need to convert images from the barcode generator to base64 and I couldn't figure out how to do that cross-domain. (the Microscan generator doesn't have the right CORS support). I wrote a tiny proxy/handler for that in C#.
start-host.bat file to start IIS Express on the
src folder. There is a shortcut
Load Test Card.url you can use to load the app up with some dummy data in it and see it in action.