great video. It´s rare to find a channel of someone with real life experiences on solving applications issues. Especially issues that demands changes in our softwares. It was a bold but correct decision.
Nice video! I'm wondering what did you use for the thermal printers? I'm having some troubles with my printers now but it's not the ideal solution I was looking for, I mean it works right now. But no, I know it can be improved even more.
Great video! Do you know if there is a way to print the order without the dialog box that most of the electron examples shows? i mean, i'm trying to print the paper directly in the kitchen right after the customer asks to help small restaurants to avoid the need to stay in front of the screen clicking all the time. im trying to do something just like you, but instead of clicking to accept the printing it would print automatically. i dont know if its possible due to any security restriction...
Should be possible, we send raw ESC/POS commands to the printer without dialogs, and it works. Maybe take a look at a Node library that can achieve this?
how to handle offline databae to online database? Do u mean when pos is start, it need a little internet to fetch new data from server and put into local? and every orders, u make a success order in offline? i mean when click order and payment it success in local, then in the background it is sending to server, right? and if it is no internet, it keep in the local, and when internet back it process again right? and if it is no internet for long time, when the pos start first time, u check it has internet or not, right? if it has, u sent data to server and fetch lastest back to local ? and this cycle is loop like so... right?
We do have a procedure that’s called ‘close day’ - it’s essentially a button that closes the POS for the day. This feature is our last resort, if there are orders that are not synced - we do it in this procedure. This procedure only succeeds when 100% of the orders are synced to the cloud. Other than that, the entire POS can function offline (after an initial sync with the server), and keeps filling a local database.
@@sabatino-dev so this pos is need internet for the first time and when pos is close, right? is it not? how can we stop user using POS because it can use in local? one more, when data init to server, is it do one by one row or sent them all? after sent, do u clear local database or keep it normal? and how we know it a new data or old data which u dont need to init to server?
We batch the rows we send to the server by 10 or 20, it can be configured per POS. When the POS is offline for longer than 72 hours it stops working, we require at least 1 ping ‘home’ every 3 days.
great video. It´s rare to find a channel of someone with real life experiences on solving applications issues. Especially issues that demands changes in our softwares. It was a bold but correct decision.
Thanks for the kind words!
Nice video!
I'm wondering what did you use for the thermal printers? I'm having some troubles with my printers now but it's not the ideal solution I was looking for, I mean it works right now. But no, I know it can be improved even more.
node-escpos and receiptline were life savers!
Great video! Do you know if there is a way to print the order without the dialog box that most of the electron examples shows? i mean, i'm trying to print the paper directly in the kitchen right after the customer asks to help small restaurants to avoid the need to stay in front of the screen clicking all the time. im trying to do something just like you, but instead of clicking to accept the printing it would print automatically.
i dont know if its possible due to any security restriction...
Should be possible, we send raw ESC/POS commands to the printer without dialogs, and it works. Maybe take a look at a Node library that can achieve this?
Can we use sequelize instead of prisma in offline electron app with sqlite? is it better option?
I’m pretty sure it uses the same driver behind-the-scenes, so you might end up with the same issues.
@@sabatino-dev I have used it and it is working completely fine not getting any error I can use it without error in distribution also.
What is the name/website of your product?
It’s called Unipage
how to handle offline databae to online database? Do u mean when pos is start, it need a little internet to fetch new data from server and put into local? and every orders, u make a success order in offline? i mean when click order and payment it success in local, then in the background it is sending to server, right? and if it is no internet, it keep in the local, and when internet back it process again right? and if it is no internet for long time, when the pos start first time, u check it has internet or not, right? if it has, u sent data to server and fetch lastest back to local ? and this cycle is loop like so... right?
We do have a procedure that’s called ‘close day’ - it’s essentially a button that closes the POS for the day. This feature is our last resort, if there are orders that are not synced - we do it in this procedure. This procedure only succeeds when 100% of the orders are synced to the cloud. Other than that, the entire POS can function offline (after an initial sync with the server), and keeps filling a local database.
@@sabatino-dev so this pos is need internet for the first time and when pos is close, right?
is it not? how can we stop user using POS because it can use in local?
one more, when data init to server, is it do one by one row or sent them all? after sent, do u clear local database or keep it normal? and how we know it a new data or old data which u dont need to init to server?
We batch the rows we send to the server by 10 or 20, it can be configured per POS.
When the POS is offline for longer than 72 hours it stops working, we require at least 1 ping ‘home’ every 3 days.
@@sabatino-dev nice concept, I learn a lot of stuff from you. I consider build muti tenency DB too for POS as Saas in my country. Thank you so much.