eWallet — Loyalty Card Wallet
A Cordova loyalty-card wallet and its REST API, built on my own as a 2025 school project: scan cards, keep them on the phone and show them at checkout.
About the project
eWallet is a mobile loyalty-card wallet that I developed on my own in 2025 as a school project for the Atelier Mobile course at CFPT Informatique (class IDA P3B). I built both the mobile app, with Apache Cordova, HTML and vanilla JavaScript, and the REST API it uses for sign-in and card synchronisation. The app lets users keep their loyalty cards in one place and show them at the checkout when needed.
Cards are added by scanning them with the phone's camera (QR codes, EAN-13, EAN-8, UPC-A and UPC-E are supported through the phonegap-plugin-barcodescanner plugin) or by typing the code manually. They are saved locally on the device and listed in the app. When a card is opened, the app generates a QR code with qrcode.js and a barcode with JsBarcode, choosing EAN-13, EAN-8 or Code 128 automatically from the length and content of the code. While a card is displayed, cordova-plugin-brightness raises the screen brightness to the maximum and keeps the screen on so the code is easier to scan; both are restored when the card is closed.
Users sign in through the REST API, and the returned authentication token is kept in localStorage. Newly added cards are queued and sent to the API when the app starts, after signing in and when the internet connection comes back, so cards can be added offline. The interface uses Bootstrap 5.3.
What it does
- Sign-in through my own REST API, with the token kept in localStorage
- Card scanning with the camera (QR code, EAN-13, EAN-8, UPC-A, UPC-E)
- Manual entry of a card code
- Local storage and list of saved cards
- QR code (qrcode.js) and barcode (JsBarcode) for each card
- Automatic barcode format: EAN-13, EAN-8 or Code 128
- Maximum brightness and screen kept on while a card is displayed
- Offline queue: new cards sent to the API at start-up, after sign-in and when the connection returns
Problems to solve
- Letting cards be added without a connection: cards are saved locally first, and pending additions are kept in a queue that is only cleared once the API confirms the synchronisation (HTTP 204).
- Displaying any scanned or typed code: the app picks a format JsBarcode can draw (EAN-13 for 13 digits, EAN-8 for 8 digits, Code 128 otherwise) and shows a message instead of failing when a code cannot be rendered.
- Making codes easy to read at a checkout: maximum brightness and keep-screen-on while a card is shown, restored as soon as it is closed.
Internship, apprenticeship or junior role? Let's talk.
I'm looking for an internship, an apprenticeship or a junior developer position, and I'm also open to selected freelance projects. Feel free to get in touch.