{"id":19241239,"url":"https://github.com/binocarlos/dug","last_synced_at":"2026-02-18T12:02:01.343Z","repository":{"id":66097133,"uuid":"14233898","full_name":"binocarlos/dug","owner":"binocarlos","description":"A simple todo application based on digger - used as an example in the docs","archived":false,"fork":false,"pushed_at":"2013-11-08T13:50:26.000Z","size":124,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-03T02:51:16.783Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/binocarlos.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}},"created_at":"2013-11-08T13:40:50.000Z","updated_at":"2013-11-08T13:50:27.000Z","dependencies_parsed_at":"2023-02-19T22:25:21.225Z","dependency_job_id":null,"html_url":"https://github.com/binocarlos/dug","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/binocarlos%2Fdug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binocarlos%2Fdug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binocarlos%2Fdug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binocarlos%2Fdug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binocarlos","download_url":"https://codeload.github.com/binocarlos/dug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240326839,"owners_count":19783923,"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":[],"created_at":"2024-11-09T17:10:47.412Z","updated_at":"2025-10-12T20:14:25.351Z","avatar_url":"https://github.com/binocarlos.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"dug\n===\n\nA simple todo application based on digger - used as an example in the docs\n\n![Screenshot of dug](screenshot.gif \"screenshot\")\n\n##installation\n\nThe app runs as a web-page and connects to digger.io to load data.\n\nChange the name of your warehouse on this line:\n\n```html\n\u003cdigger warehouse=\"binocarlos/todo-example\" selector=\"todo:sort(name)\"\u003e\n```\n\nThis controls where the data is loaded from.\n\nTo clone this app - you can fork the binocarlos/todo-example warehouse and you can then write todos to the warehouse.\n\n##How it works\n\n### connect to digger\nThe page runs as a [digger](http://digger.io) angular application and so at the foot of the page we connect to digger:\n\n```html\n\u003cscript src=\"http://digger.io/api/v1.angularplus.js\"\u003e\u003c/script\u003e\n```\n\nThis will include angular also and so we don't need that on the page.\n\nWe also include twitter bootstrap on the page.\n\n### load data\nThe warehouse we are pointing to: **binocarlos/todo-example** contains **todo** models.\n\nEach model has **done** and **important** checkboxes that set the classname accordingly.\n\nSo - we can load all todo models and filter them using the .done classname:\n\n\nload the data:\n\n```html\n\u003cdigger warehouse=\"binocarlos/todo-example\" selector=\"todo:sort(name)\"\u003e\n```\n\n### looping and filtering the tasks\nloop over things that do not have .done classname:\n\n```html\n\u003ctr digger-repeat=\"filter('.done:not')\"\u003e\n```\n### the 'importnat' label\nonly show the important label if the important class is present:\n\n```html\n\u003cspan ng-if=\"$digger.hasClass('important')\" class=\"label label-danger\"\u003eimportant\u003c/span\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinocarlos%2Fdug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinocarlos%2Fdug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinocarlos%2Fdug/lists"}