Pivoting to an offline-first app using Electron - lessons learned

Поделиться
HTML-код
  • Опубликовано: 17 ноя 2024

Комментарии • 16

  • @prgaray1
    @prgaray1 2 месяца назад

    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.

    • @sabatino-dev
      @sabatino-dev  2 месяца назад +1

      Thanks for the kind words!

  • @khalidsheet
    @khalidsheet 6 месяцев назад

    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.

    • @sabatino-dev
      @sabatino-dev  6 месяцев назад

      node-escpos and receiptline were life savers!

  • @raulbeltrame4961
    @raulbeltrame4961 6 месяцев назад

    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...

    • @sabatino-dev
      @sabatino-dev  6 месяцев назад

      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?

  • @virajgamdha5328
    @virajgamdha5328 Месяц назад +1

    Can we use sequelize instead of prisma in offline electron app with sqlite? is it better option?

    • @sabatino-dev
      @sabatino-dev  Месяц назад +1

      I’m pretty sure it uses the same driver behind-the-scenes, so you might end up with the same issues.

    • @virajgamdha5328
      @virajgamdha5328 Месяц назад +1

      @@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.

  • @rickhdezs
    @rickhdezs 6 месяцев назад

    What is the name/website of your product?

  • @yoskokleng3658
    @yoskokleng3658 6 месяцев назад

    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?

    • @sabatino-dev
      @sabatino-dev  6 месяцев назад

      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.

    • @yoskokleng3658
      @yoskokleng3658 6 месяцев назад

      @@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?

    • @sabatino-dev
      @sabatino-dev  6 месяцев назад +1

      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.

    • @yoskokleng3658
      @yoskokleng3658 6 месяцев назад

      @@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.