{"id":19938643,"url":"https://github.com/sectore/haskell-elm-todo-app","last_synced_at":"2025-09-06T20:36:01.172Z","repository":{"id":66673194,"uuid":"65636329","full_name":"sectore/haskell-elm-todo-app","owner":"sectore","description":"Todo app build with Haskell (server-side) and Elm (client-side)","archived":false,"fork":false,"pushed_at":"2019-09-24T16:54:34.000Z","size":556,"stargazers_count":61,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-03T14:41:45.268Z","etag":null,"topics":["elm","haskell","servant"],"latest_commit_sha":null,"homepage":"","language":"Elm","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/sectore.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-13T20:49:25.000Z","updated_at":"2024-11-19T14:36:51.000Z","dependencies_parsed_at":"2023-03-09T08:31:07.227Z","dependency_job_id":null,"html_url":"https://github.com/sectore/haskell-elm-todo-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sectore/haskell-elm-todo-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sectore%2Fhaskell-elm-todo-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sectore%2Fhaskell-elm-todo-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sectore%2Fhaskell-elm-todo-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sectore%2Fhaskell-elm-todo-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sectore","download_url":"https://codeload.github.com/sectore/haskell-elm-todo-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sectore%2Fhaskell-elm-todo-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273959950,"owners_count":25198304,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["elm","haskell","servant"],"created_at":"2024-11-12T23:41:25.295Z","updated_at":"2025-09-06T20:36:01.107Z","avatar_url":"https://github.com/sectore.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# haskell-elm-todo-app\n\n_**Update 09/24/2019:**_ Support of GHC 8.6.5 and Elm 0.19\n\nTodo app build with [`Haskell`](https://www.haskell.org/) ([`Servant`](http://haskell-servant.github.io/), [`Persistent`](https://hackage.haskell.org/package/persistent)) on server-side and [`Elm`](http://elm-lang.org/) on client-side.\n\n![screenshot](./screencast.gif)\n\n## _Random notes (2016)_\n\nThe modular structure of the `Elm` app based on the article \"[How I Structure Elm Apps](http://blog.jenkster.com/2016/04/how-i-structure-elm-apps.html)\" by [Kris Jenkins](https://github.com/krisajenkins). It also uses the `elm-return` library by [Isaac Shapira](https://github.com/Fresheyeball) for using a [`Writer monad` approach](http://mutanatum.com/posts/2016-09-18-Return.html) with any `update` function.\n\nIt might be overkill somehow to use all these things for a simple Todo app. Anyway, I just wanted to check it out what is possible and how does it feel to write a bigger `Elm` application in any future...\n\n\n## Instructions\n\n### Server-side app\n\n- Build:\n\n``` shell\nstack build\n```\n\n- Execute:\n\n``` shell\nstack exec haskell-elm-todo\n```\n\n- Run tests:\n\n``` shell\nstack test\n```\n\n#### DB queries\n\nby using [httpie](https://github.com/jkbrzt/httpie):\n\n``` shell\n\n# add a todo\nhttp POST localhost:3000/todo/ completed:=false description=\"my todo\"\n\n# get a todo\nhttp localhost:3000/todo/1\n\n# delete a todo\nhttp DELETE localhost:3000/todo/1\n\n# update a todo\nhttp PUT localhost:3000/todo/1 description=\"any other description\" completed:=true\n\n# get all todos\nhttp localhost:3000/todos\n\n```\n\n\n### Client-side app\n\n- Goto project folder\n\n``` shell\ncd {project}/client/\n```\n\n- Build:\n\n``` shell\nnpm i\n```\n\n- Run:\n\n``` shell\nnpm start\n\n```\n\nOpen [http://localhost:3333](http://localhost:3333).\n\n\n## Acknowledge (2016)\n\n### Helpful Haskell / Servant stuff\n\n- Haskell + Persistent: [http://www.yesodweb.com/book/persistent](http://www.yesodweb.com/book/persistent)\n\n- School of Haskell \"[Querying an existing database](https://www.schoolofhaskell.com/school/advanced-haskell/persistent-in-detail/existing-database)\"\n\n- Example Servant + Persistent: [https://github.com/haskell-servant/example-servant-persistent/](https://github.com/haskell-servant/example-servant-persistent/)\n\n- Example Servant + Persistent by [Matt Parsons](https://github.com/parsonsmatt/): [https://github.com/parsonsmatt/servant-persistent](https://github.com/parsonsmatt/servant-persistent)\n\n- Example Servant + Elm: [https://github.com/haskell-servant/example-servant-elm](https://github.com/haskell-servant/example-servant-elm)\n\n- \"Todobackend\" with Servant: [https://github.com/jhedev/todobackend-haskell/tree/master/todobackend-servant](https://github.com/jhedev/todobackend-haskell/tree/master/todobackend-servant)\n\n- Album app (Haskell + Elm) by [Magnus Rundberget / @rundis](https://github.com/rundis): [https://github.com/rundis/albums](https://github.com/rundis/albums)\n\n- DB example of \"[5 Ways to Test Application Code that Accesses a Database in Haskell](https://github.com/cdepillabout/testing-code-that-accesses-db-in-haskell/)\"\n\n\n### Helpful Elm stuff\n\n- Blog post \"[How I Structure Elm Apps](http://blog.jenkster.com/2016/04/how-i-structure-elm-apps.html)\" by [Kris Jenkins / @krisajenkins](https://github.com/krisajenkins)\n\n- [Advanced example](https://github.com/krisajenkins/elm-dialog/tree/master/examples/Advanced) of `elm-dialog` by [Kris Jenkins /  @krisajenkins](https://github.com/krisajenkins)\n\n- Blog post [\"The Return Monad\"](http://mutanatum.com/posts/2016-09-18-Return.html) by [Isaac Shapira / @Fresheyeball](https://github.com/Fresheyeball)\n\n\n- Blog post [\"Optical Swordplay With Components\"](https://toast.al/posts/2016-10-20-optical-swordplay-with-components.html) by [Kyle J. Kress / @toastal](https://github.com/toastal)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsectore%2Fhaskell-elm-todo-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsectore%2Fhaskell-elm-todo-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsectore%2Fhaskell-elm-todo-app/lists"}