{"id":16372453,"url":"https://github.com/mgwidmann/todo","last_synced_at":"2026-03-13T18:30:22.862Z","repository":{"id":71789228,"uuid":"108062245","full_name":"mgwidmann/todo","owner":"mgwidmann","description":null,"archived":false,"fork":false,"pushed_at":"2017-10-24T01:40:11.000Z","size":83,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-31T17:19:54.300Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/mgwidmann.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":"2017-10-24T01:38:49.000Z","updated_at":"2017-10-24T13:29:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c17407b-4e85-421a-b7a4-3a3844c5c678","html_url":"https://github.com/mgwidmann/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/mgwidmann%2Ftodo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgwidmann%2Ftodo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgwidmann%2Ftodo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgwidmann%2Ftodo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgwidmann","download_url":"https://codeload.github.com/mgwidmann/todo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239921881,"owners_count":19718842,"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-10-11T03:11:26.620Z","updated_at":"2026-03-13T18:30:22.769Z","avatar_url":"https://github.com/mgwidmann.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Todo\n\n## Setup\n\n1. Install nanobox client https://docs.nanobox.io/install/\n1. Run `nanobox dns add local todo.dev` to add the hostname of the virtual machine to your `/etc/hosts` file.\n1. Run `nanobox run` to get a command prompt on the virtual machine.\n1. Within the VM, run the following: `mix do ecto.create, ecto.migrate`\n\n## Running locally\n\n1. `nanobox run` to get a command prompt in the virtual machine.\n1. `mix phx.server` to start up the server.\n\nYou should be able to react the server at http://todo.dev\n\n### Example CURLs\n\n* List all\n  ```bash\n  $ curl -XGET http://todo.dev:4000/api/todos\n\n  {\"data\":[]}\n  ```\n* Create\n  ```bash\n  $ curl -XPOST -H 'Content-Type: application/json' http://todo.dev:4000/api/todos -d '{\"todo\":{\"title\":\"Buy Milk\",\"description\":\"Organic grass fed\"}}'\n\n  {\"data\":{\"updatedAt\":\"2017-10-24T01:31:31.676619\",\"title\":\"Buy Milk\",\"id\":2,\"description\":\"Organic grass fed\",\"createdAt\":\"2017-10-24T01:31:31.676585\",\"completed\":false}}\n  ```\n* Update\n  ```bash\n  $ curl -XPUT -H 'Content-Type: application/json' http://todo.dev:4000/api/todos/2 -d '{\"todo\":{\"completed\": true}}'\n\n  {\"data\":{\"updatedAt\":\"2017-10-24T01:33:08.909346\",\"title\":\"Buy Milk\",\"id\":2,\"description\":\"Organic grass fed\",\"createdAt\":\"2017-10-24T01:31:31.676585\",\"completed\":true}}\n  ```\n* Show\n  ```bash\n  $ curl -XGET http://todo.dev:4000/api/todos/2\n\n  {\"data\":{\"updatedAt\":\"2017-10-24T01:33:08.909346\",\"title\":\"Buy Milk\",\"id\":2,\"description\":\"Organic grass fed\",\"createdAt\":\"2017-10-24T01:31:31.676585\",\"completed\":true}}\n  ```\n* Delete (No response body, so `-v` is used to see the HTTP response headers of 204)\n  ```bash\n  $ curl -XDELETE http://todo.dev:4000/api/todos/1 -v\n  *   Trying 172.20.0.5...\n  * TCP_NODELAY set\n  * Connected to todo.dev (172.20.0.5) port 4000 (#0)\n  \u003e DELETE /api/todos/1 HTTP/1.1\n  \u003e Host: todo.dev:4000\n  \u003e User-Agent: curl/7.54.0\n  \u003e Accept: */*\n  \u003e\n  \u003c HTTP/1.1 204 No Content\n  \u003c server: Cowboy\n  \u003c date: Tue, 24 Oct 2017 01:36:27 GMT\n  \u003c content-length: 0\n  \u003c cache-control: max-age=0, private, must-revalidate\n  \u003c x-request-id: o5gdi9t0ruga7tdm4i802h3m89ge3dmi\n  \u003c\n  * Connection #0 to host todo.dev left intact\n  ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgwidmann%2Ftodo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgwidmann%2Ftodo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgwidmann%2Ftodo/lists"}