{"id":24489728,"url":"https://github.com/changerd/booklibdesk","last_synced_at":"2026-05-10T10:03:16.002Z","repository":{"id":270256595,"uuid":"909778596","full_name":"changerd/BooklibDesk","owner":"changerd","description":"WPF Application sample","archived":false,"fork":false,"pushed_at":"2024-12-29T18:48:09.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T17:15:25.830Z","etag":null,"topics":["cshar","postgres","wpf"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/changerd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-29T18:42:09.000Z","updated_at":"2024-12-29T18:48:47.000Z","dependencies_parsed_at":"2024-12-29T19:28:55.478Z","dependency_job_id":"3270c3ab-2dc1-4f26-bb36-8d83689e781e","html_url":"https://github.com/changerd/BooklibDesk","commit_stats":null,"previous_names":["changerd/booklibdesk"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changerd%2FBooklibDesk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changerd%2FBooklibDesk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changerd%2FBooklibDesk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changerd%2FBooklibDesk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/changerd","download_url":"https://codeload.github.com/changerd/BooklibDesk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243668919,"owners_count":20328171,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cshar","postgres","wpf"],"created_at":"2025-01-21T17:15:42.336Z","updated_at":"2026-05-10T10:03:10.945Z","avatar_url":"https://github.com/changerd.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BooklibDesk\n\nBooklibDesk is a WPF desktop application designed to manage a library of books. It provides functionality to add, edit, delete, with data stored in a PostgreSQL database. The application is built using the MVVM (Model-View-ViewModel) architectural pattern.\n\n## Features\n\n- Add new books with title, author, and year of publication.\n- Edit existing book records.\n- Delete books from the library.\n- View a list of books in a sortable and filterable table.\n- Store and retrieve book data from a PostgreSQL database using Entity Framework Core.\n- Input validation and feedback for successful/unsuccessful operations.\n\n## Technologies Used\n\n- **WPF (Windows Presentation Foundation)** for the user interface.\n- **Entity Framework Core** for database interaction.\n- **PostgreSQL** as the database.\n- **MVVM Pattern** for application architecture.\n\n## Requirements\n\n- .NET 6 SDK or later\n- PostgreSQL database server (running in Docker or locally)\n- Visual Studio 2022 or another compatible IDE\n\n## Getting Started\n\n### Clone the Repository\n\n```bash\ngit clone https://github.com/yourusername/BooklibDesk.git\ncd BooklibDesk\n```\n\n### Set Up the Database\n\n1. Pull the official PostgreSQL Docker image:\n   ```bash\n   docker pull postgres\n   ```\n2. Run the PostgreSQL container:\n   ```bash\n   docker run -d --name postgres-database -e POSTGRES_PASSWORD=123 -p 5432:5432 postgres:latest\n   ```\n3. Create SQL table:\n  ```sql\n  CREATE DATABASE booklib;\n\n  CREATE TABLE Books (\n    Id SERIAL PRIMARY KEY,\n    Title VARCHAR(255) NOT NULL,\n    Author VARCHAR(255) NOT NULL,\n    Year INT\n  );\n  ```\n\n### Build and Run the Application\n\n1. Open the solution in Visual Studio.\n2. Restore NuGet packages and build the solution.\n3. Run the application.\n\n## Project Structure\n\n- **Models**: Defines the `Book` entity.\n- **Data**: Contains the `ApplicationDbContext` for database interactions.\n- **ViewModels**: Implements the `MainViewModel` for binding data to the UI.\n- **Views**: Includes the XAML files for the application's UI.\n- **Utils**: Contains utility classes like `RelayCommand`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchangerd%2Fbooklibdesk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchangerd%2Fbooklibdesk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchangerd%2Fbooklibdesk/lists"}