Multiple ways to develop a web application communicating with a NFC reader.
See the slides
This repo aims at explaining how I ended up building a NFC Reader with an Arduino using the WebUSB API.
You will find the three solutions I developed to make a web application communicate with a NFC Reader.
Still using a ACR122U NFC Reader, I implemented the a local Node.js server handling the NFC reading part and sending the read payload to a front-end application through web-sockets.
You can find the code for this solution in the ./1-local-nfc-server
folder.
See the 1-local-nfc-server/README.md file to understand how it works.
Using a ACR122U NFC Reader, I firstly implemented an Electron application to handle NFC reading.
You can find the code for this solution in the ./2-electron
folder.
See the 2-electron/README.md file to understand how it works.
Using an Arduino Leonardo board and an Adafruit PN532 NFC Shield, I created a device able to communicate with a web application thanks to the WebUSB API and its implementation in Google Chrome.
You can find the code for this solution in the ./3-webusb
folder.