I'm new in Blazor, and i want to create a PWA to work (almost) full offline.
The user must Authenticate (Microsoft.AspNetCore.Authentication).
Then i need to get some data from SQL Server and store it in the browser LocalStorage.
After that, all the work is done with the local data, and only when finnished its necessary to send to SQL Server.
What is the best way to achieve this?
I already have the SQL Database, so i think i will try to do the EF Core Power Tools - Reverse Engineer.
What is the best "architecture" to accomplish this? Cliente, Server and Shared? Cliente, Lib, DataContext, API?
Thank you in advanced for any guidance.
I created one project with:
Printscreen1 This way i manage to get what i wanted.
My Client project as this packages: Client
My Server project as this packages: Server
And in my Shared project i only have my classes (created like the SQL Database Tables i will use).
After that, i get records from the SQL and stored them in the localstorage. Then, i only use localstorage to work. In the end, i (will) submit the data to SQL Server.
I toke a look at leandro-toloza and ibrahim comments and links (which I am grateful for) to solve my question.
PS: I will try to keep you informed about the project's progress (difficulties and achievements).