{"id":14992336,"url":"https://github.com/LIU9293/rust-2048","last_synced_at":"2025-09-25T14:31:03.572Z","repository":{"id":176515171,"uuid":"658406478","full_name":"LIU9293/rust-2048","owner":"LIU9293","description":"Learn rust by coding a 2048 game use dioxus","archived":false,"fork":false,"pushed_at":"2023-07-12T13:03:31.000Z","size":243,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T12:54:22.893Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/LIU9293.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":"2023-06-25T16:43:03.000Z","updated_at":"2024-12-09T17:38:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"73da3865-53f4-4073-b160-9e2dbe64b032","html_url":"https://github.com/LIU9293/rust-2048","commit_stats":null,"previous_names":["liu9293/rust-2048"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LIU9293/rust-2048","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIU9293%2Frust-2048","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIU9293%2Frust-2048/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIU9293%2Frust-2048/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIU9293%2Frust-2048/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LIU9293","download_url":"https://codeload.github.com/LIU9293/rust-2048/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIU9293%2Frust-2048/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276932102,"owners_count":25730723,"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-25T02:00:09.612Z","response_time":80,"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":[],"created_at":"2024-09-24T15:00:57.685Z","updated_at":"2025-09-25T14:31:03.283Z","avatar_url":"https://github.com/LIU9293.png","language":"Rust","funding_links":[],"categories":["GUI"],"sub_categories":[],"readme":"## 2048 Game in Disxus\n\nIt's a demo application for me to figure out if I can use rust/dioxus in production code, this codebase contains a frontend client that can compiled to Web(wasm) and Desktop, a simple rust server to handle some basic API logic and some shared components between client and server.\n\nLive Demo -\u003e https://rust-2048.vercel.app/\n\nAPI -\u003e https://rust-2048-api.onrender.com/leaderboard\n\n### Features in this application\n\n- [x] Use tailwind and daisy css for styling\n- [x] Handle Dark / light theme\n- [x] Try to inplenment i18n use fermi state\n- [x] Access cookies / localstorage\n- [x] Build web and native app\n- [x] A simple server to record user progress\n- [x] Leaderboard\n\n### Test and run\n```\n1. Run server\ncargo run -p server\n\n2. Run client\n// web\ndioxus serve --platform web\n\n// desktop, desktop router is not working, try to exclude router for desktop\ndioxus serve --platform desktop\n```\n\n### Target\n\n* Cross platform\n* Full stack in rust, with a simple backend server\n* Platform support\n  - [x] Web\n  - [x] Native MacOS\n  - [ ] Mobile ??\n  - [ ] Terminal ??\n\n### Progress\n\n- [x] Basic UI\n- [x] Basic move logic\n- [x] Success or fail\n- [x] How to deploy\n  * Web -\u003e scripts/build-web.sh\n  * Desktop -\u003e scripts/build-desktop.sh\n- [x] Log the highest score and the total score\n- [x] CI/CD\n  * Web -\u003e Vercel, done\n  * Server -\u003e Render.com\n  * Desktop?\n\n### Server \n\n- [x] Record game progress\n- [x] Record progress for multiple users\n- [x] Leaderboard\n\nGithub\n-\nhttps://github.com/LIU9293/rust-2048/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLIU9293%2Frust-2048","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLIU9293%2Frust-2048","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLIU9293%2Frust-2048/lists"}