Skip to content

Latest commit

 

History

History
57 lines (34 loc) · 1.99 KB

File metadata and controls

57 lines (34 loc) · 1.99 KB

PowerSync + WPF Demo: To-Do List

Overview

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

Getting Started

Prerequisites

Ensure you have the following installed:

Configuration

Copy the example environment file and update it with your PowerSync credentials:

cp .env.template .env

Edit .env to include the necessary API keys and connection details.

Running the App

Build and run the WPF application using the .NET CLI:

dotnet build

Run the app:

dotnet run

Alternatively, open the solution in Visual Studio and start debugging (F5).

Features

  • 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: MainWindow serves as the main navigation shell.

Learn More

Feedback and contributions are welcome!