This is a demo WPF application that showcases how to use the PowerSync .NET SDK for data synchronization in a to-do list application. The app leverages PowerSync to sync task lists and items while working seamlessly online and offline.
To run this demo, you need to have one of our Node.js self-host demos (Postgres | MongoDB | MySQL) running, as it provides the PowerSync server that this CLI's PowerSync SDK connects to.
Changes made to the backend's source DB or to the self-hosted web UI will be synced to this CLI client (and vice versa).
Ensure you have the following installed:
Copy the example environment file and update it with your PowerSync credentials:
cp .env.template .envEdit .env to include the necessary API keys and connection details.
Build and run the WPF application using the .NET CLI:
dotnet buildRun the app:
dotnet runAlternatively, open the solution in Visual Studio and start debugging (F5).
- Offline-first Sync: PowerSync ensures that tasks and lists are synchronized efficiently when online.
- Task Management: Add, edit, complete, and delete tasks within lists.
- MVVM Architecture: Clean separation of concerns with ViewModels and Views.
- Shell Navigation:
MainWindowserves as the main navigation shell.
Feedback and contributions are welcome!