Storing data in locadb in angular electron desktop app while offline

I want to build an electron desktop by using angular for the frontend purposes. I have proviously worked with angular in building web application but now that i am going to build a simple application that will keep taking orders and store the orders in a localdb and when the system will connect to the internet the data from localdb will be pushed back into firebase database. Since i have never done this before i thought maybe someone could give me an advice on using localdb with angular electron application. Or if there is any existing package that will help me then do give its reference.

Source: New feed
Source Url Storing data in locadb in angular electron desktop app while offline