Open nikhil96widhani opened 4 years ago
Build app
https://pypi.org/project/django-eel/
https://thinkami.hatenablog.com/entry/2019/04/21/184812
pyinstaller --name=AI_POS AI_DjangoPos/gui.py --onefile
https://stackoverflow.com/questions/50912925/deploying-a-server-less-django-app/50914935
https://meet.google.com/out-tdvy-uho
meet link
https://jsfiddle.net/2bqv785r/2/ Interesting table editor cell
Docker production
barcode 👍
var barcode = '';
var interval;
document.addEventListener('keydown', function(evt) {
if (interval)
clearInterval(interval);
if (evt.code == 'Enter') {
if (barcode)
handleBarcode(barcode);
barcode = '';
return;
}
if (evt.key != 'Shift')
barcode += evt.key;
interval = setInterval(() => barcode = '', 20);
});
function handleBarcode(scanned_barcode) {
document.querySelector('#last-barcode').innerHTML = scanned_barcode;
}
1: add products from barcode scanner https://jsfiddle.net/pg0h9na6/2/
https://github.com/the-letter-e-production/jquery-pos
https://github.com/spape/barcode-scanner.js
https://github.com/axenox/onscan.js