{"id":16096755,"url":"https://github.com/futtetennista/tradingapp","last_synced_at":"2026-05-16T22:01:50.296Z","repository":{"id":141715866,"uuid":"113675203","full_name":"futtetennista/TradingApp","owner":"futtetennista","description":"An exploration on porting a elm-like architecture on Android","archived":false,"fork":false,"pushed_at":"2017-12-09T15:45:11.000Z","size":205,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-16T17:43:28.953Z","etag":null,"topics":["android","android-app","elm-architecture","kotlin-android","rxandroid2","rxjava","rxkotlin","rxkotlin-android","websockets"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/futtetennista.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":"2017-12-09T14:23:27.000Z","updated_at":"2018-06-20T21:28:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"37d78a62-df71-48db-a555-69d591610d6f","html_url":"https://github.com/futtetennista/TradingApp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/futtetennista/TradingApp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futtetennista%2FTradingApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futtetennista%2FTradingApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futtetennista%2FTradingApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futtetennista%2FTradingApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/futtetennista","download_url":"https://codeload.github.com/futtetennista/TradingApp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/futtetennista%2FTradingApp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33120450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"ssl_error","status_checked_at":"2026-05-16T18:38:29.903Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["android","android-app","elm-architecture","kotlin-android","rxandroid2","rxjava","rxkotlin","rxkotlin-android","websockets"],"created_at":"2024-10-09T17:24:51.800Z","updated_at":"2026-05-16T22:01:50.246Z","avatar_url":"https://github.com/futtetennista.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trading App\n\n## Architecture\n\nI wanted to explore the Elm architecture and Redux way of building apps on Android. It is heavily\ninspired by this talk:\n[Managing State with RxJava](https://speakerdeck.com/jakewharton/the-state-of-managing-state-with-rxjava-devoxx-us-2017).\nThe naming conventions are the same and might look weird for people not familiar the aforementioned\nframeworks, in a nutshell:\n\n* Model: defines common types and data structures\n* View: defines how data is displayed - that is in Android lingo an `Activity`, a `Fragment`, a `View`\n* Update: defines interactions, it's responsible for most of the state handling and app logic\n\nThose three files encapsulate classes related to those components of the architecture, the `RestApi`\nand `WebSocketApi` files contain code that handles a trading API.\n\n## Tradeoffs\n- UI is minimal since it was not the focus of the assignment\n- I found handling websockets with Rx was particularly challenging and I'm not 100% convinced the way\nI've done it it's the cleanest, clearest and more elegan; it probably need a couple more iterations.\n\n## Improvements\nI don't know if you're familiar with Reactive Extensions and RxJava but I couldn't find elegant\nsolutions in a couple of places (marked with TODO#Improve). In case you are familiar with it, I'd\n appreciate some feedback on that if you've got any.\n\n# Known bugs\nIf you're testing the app using an emulator, fetching a new product id won't work because of [this\n issue](https://github.com/square/okhttp/issues/3278) in okhttp\n\n## Building the app\nI used Gradle and all standard Android tools so you shouldn't have any issues with it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuttetennista%2Ftradingapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuttetennista%2Ftradingapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuttetennista%2Ftradingapp/lists"}