{"id":19443753,"url":"https://github.com/aretecode/todo","last_synced_at":"2025-10-07T04:13:27.370Z","repository":{"id":34738362,"uuid":"38716756","full_name":"aretecode/Todo","owner":"aretecode","description":"Using some Aura libraries ","archived":false,"fork":false,"pushed_at":"2015-10-12T22:09:33.000Z","size":332,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-07T22:18:49.483Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/aretecode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-07T21:49:50.000Z","updated_at":"2015-10-21T15:15:28.000Z","dependencies_parsed_at":"2022-09-15T03:52:22.537Z","dependency_job_id":null,"html_url":"https://github.com/aretecode/Todo","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/aretecode%2FTodo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aretecode%2FTodo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aretecode%2FTodo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aretecode%2FTodo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aretecode","download_url":"https://codeload.github.com/aretecode/Todo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240627960,"owners_count":19831600,"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-10T15:44:05.726Z","updated_at":"2025-10-07T04:13:22.336Z","avatar_url":"https://github.com/aretecode.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Todo\nAn experiment with [ADR](https://github.com/pmjones/adr)\n\n[![Build Status](https://secure.travis-ci.org/aretecode/Todo.svg)](https://travis-ci.org/aretecode/Todo)\n[![Codacy Badge](https://api.codacy.com/project/badge/f3a1ef3f3fc1426e939778136f387b52)](https://www.codacy.com/app/aretecode/Todo)\n\n## Instructions \n\n1. Set DB in .env\n\n2. Create the tables (using the following SQL)\n\n  ```sql\n  CREATE TABLE `users` (\n    `id` int(11) NOT NULL AUTO_INCREMENT,\n    `username` varchar(255) NOT NULL COMMENT 'Username',\n    `email` varchar(255) NOT NULL COMMENT 'Email',\n    `password` varchar(255) NOT NULL COMMENT 'Password',\n    `fullname` varchar(255) NOT NULL COMMENT 'Full name',\n    `website` varchar(255) DEFAULT NULL COMMENT 'Website',\n    `active` int(11) NOT NULL COMMENT '0',\n    PRIMARY KEY (`id`)\n  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;\n  INSERT INTO `users` (`id`, `username`, `email`, `password`, `fullname`, `website`, `active`) VALUES\n  (1, 'harikt', 'hello@example.com',  '$2y$10$PAzgJnHd/gTQzNznVg7un.HGEuGHYtYACCFknGuf.4diSunu3MA7C', 'Hari KT',  'http://harikt.com', 1),\n  (2, 'pmjones',  'hello@example.com',  '$2y$10$vtW.Fu8fhWuuCZz6s/jus.ilkzOMjMGwbzdkZNUzIVZLc.PV/6dVG', 'Paul M Jones', 'http://paul-m-jones.com',  1);\n  ```\n\n  ```sql\n  CREATE TABLE `todo` (\n    `todoId` int(11) NOT NULL AUTO_INCREMENT,\n    `description` varchar(255) NOT NULL COMMENT 'String description of this Todo',\n    `userId` int(11) DEFAULT NULL COMMENT 'Id of the User connected to this Todo',\n    PRIMARY KEY (`todoId`)\n  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;\n  ```\n\n3. Change into the project directory (is `todo` here), then start the built-in PHP web server:\n```\n    cd todo\n    php -S localhost:8080 -t web/\n```\n\n4. Browse to `\u003chttp://localhost:8080/todo/ajax.php\u003e` to do some stuff with a GUI\n \n5. You can browse to `\u003chttp://localhost:8080/add/words-of-the-todo-you-want-to-add\u003e` or with other commands\n\u003e if using ajax, change the `var url = ` in [ajax.php](https://github.com/aretecode/Todo/blob/master/web/ajax.php)\n\nOR \n\n- Change into the project directory (is `todo` here) and go to `\u003chttp:\\\\your-todo-project/web/todo/add/words-of-the-todo-you-want-to-add\u003e` \n\n\n## Questions: \nShould Parameters in Domain be (array), or individual?\n\u003e Whichever makes more sense for your domain\n\nWhy does EditItemInput not work?\n\u003e Unknown, debug with playing around with the $_SERVER\n\nAdd vs Create?\n\u003e Add makes more sense when using Views and with that View, reaching into the domain only for defaults\n\nHow to best test testGetListSuccess ? get results from db \u0026 compare? Regex compare just a bit of it?\n\u003e Current comparison is fine, think it is something with Zend\n\nDoes it compare Input instead of Output if it is a 404?\n\u003e Yes, but in Zend \n\nWhy can't traits be set in Aura.Di config?\n\n## @TODO: \n* [ ] AuthorizationService implementation.\n* [x] ~~Fix User~~\n* [x] ~~Add Login form for the authentication.~~\n* [ ] Put it on a demo site so it can be played around with.\n* [x] ~Make the aj(ax) example not just interpret other HTTP status codes as `error` but react respectively.\n* [ ] Add Views\n* [ ] Hotswap Responses\n* [ ] getItemTest\n* [ ] userTest\n* [ ] Add proper uses of HTTP Methods (especially Put)\n\n## Credits (uses)\n- [Radar](https://github.com/radarphp/Radar.Adr/)\n- [ADR](https://github.com/pmjones/adr)\n- [AuraAuth example](https://github.com/harikt/authentication-pdo-example)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faretecode%2Ftodo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faretecode%2Ftodo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faretecode%2Ftodo/lists"}