{"id":17694157,"url":"https://github.com/can-lehmann/owlkettle-crud","last_synced_at":"2025-04-09T16:18:16.093Z","repository":{"id":157388933,"uuid":"624921900","full_name":"can-lehmann/owlkettle-crud","owner":"can-lehmann","description":"An example of a simple CRUD application in owlkettle","archived":false,"fork":false,"pushed_at":"2023-04-27T14:41:59.000Z","size":88,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T16:18:05.401Z","etag":null,"topics":["crud","example","nim"],"latest_commit_sha":null,"homepage":"","language":"Nim","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/can-lehmann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2023-04-07T15:39:53.000Z","updated_at":"2024-09-12T13:20:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"f12303f2-8c44-4007-810f-76bd4b1191c5","html_url":"https://github.com/can-lehmann/owlkettle-crud","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can-lehmann%2Fowlkettle-crud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can-lehmann%2Fowlkettle-crud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can-lehmann%2Fowlkettle-crud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/can-lehmann%2Fowlkettle-crud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/can-lehmann","download_url":"https://codeload.github.com/can-lehmann/owlkettle-crud/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065280,"owners_count":21041872,"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":["crud","example","nim"],"created_at":"2024-10-24T13:48:00.663Z","updated_at":"2025-04-09T16:18:16.065Z","avatar_url":"https://github.com/can-lehmann.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Owlkettle CRUD Example\n\nA simple CRUD (Create, Read, Update, Delete) example application created using [owlkettle](https://github.com/can-lehmann/owlkettle).\nIt uses `owlkettle` for creating the user interface and `tiny_sqlite` for storing the entities.\n\n![Screenshot](assets/screenshot.png)\n\nThe application manages a list of users.\nEach user has a first and last name as well as an automatically generated ID.\nThe users are saved in an SQLite database.\n\n## Installation\n\nRunning this example requires that `GTK4` is installed on your system.\nSee [the owlkettle installation guide](https://github.com/can-lehmann/owlkettle#installation) for more details.\n\n```bash\n$ git clone https://github.com/can-lehmann/owlkettle-crud\n$ cd owlkettle-crud\n$ nimble install owlkettle@#head\n$ nimble install tiny_sqlite\n$ nim compile -r src/main.nim\n```\n\n## Project Structure\n\nThe architecture of the application consists of two parts:\nThe `model` defines the `User` entity and the `UserModel` object which is used to manage all `User` entities.\nThe `view` specifies the owlkettle widgets used to display the users in a GUI.\n\nThe following shows the directory structure of the project:\n\n- **src**: Main source files for the application\n  - **model**: The data model\n    - [user_model.nim](src/model/user_model.nim): `UserModel`, `User`, `UserId`\n  - **view**: The custom widgets defined by the application\n    - [user_list.nim](src/view/user_list.nim): `UserList` widget\n    - [search_bar.nim](src/view/search_bar.nim): `SearchBar` widget\n    - [edit_user_dialog.nim](src/view/edit_user_dialog.nim): `EditUserDialog`\n    - [user_editor.nim](src/view/user_editor.nim): `UserEditor` widget\n    - [app_menu_button.nim](src/view/app_menu_button.nim): `AppMenuButton` widget\n  - [main.nim](src/main.nim): Entry point for the application and `App` widget\n- **assets**: Images used for documentation\n- **icons**: Additional icons used in the application\n\n## Widgets\n\nThe following screenshots show how the custom widgets defined in src/view are used in the application.\n\n![Widgets in the main application window](assets/app_widgets.png)\n\nThe `EditUserDialog` is used for creating and updating users.\nSee [edit_user_dialog.nim](src/view/edit_user_dialog.nim) for details.\n\n![Widgets in the EditUserDialog](assets/dialog_widgets.png)\n\n## Funding\n\nThe funding for this example was donated by [itwrx.org](https://itwrx.org/) ([@ITwrx](https://github.com/ITwrx)).\n\n## License\n\nThis example is licensed under the MIT license.\nSee `LICENSE.txt` for more information.\n\nThe files in `icons/` are created by Font Awesome and licensed under the CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcan-lehmann%2Fowlkettle-crud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcan-lehmann%2Fowlkettle-crud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcan-lehmann%2Fowlkettle-crud/lists"}