{"id":17040979,"url":"https://github.com/uggla/dojo3","last_synced_at":"2025-03-23T00:46:25.574Z","repository":{"id":233413810,"uuid":"779445690","full_name":"uggla/dojo3","owner":"uggla","description":"Coding dojo #3 in Rustlang","archived":false,"fork":false,"pushed_at":"2025-02-02T18:51:49.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-14T19:59:23.012Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uggla.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":"2024-03-29T21:25:26.000Z","updated_at":"2025-02-02T18:37:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"497801b5-2193-4f9e-9e9b-e43aeebd4d9a","html_url":"https://github.com/uggla/dojo3","commit_stats":null,"previous_names":["uggla/dojo3"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uggla%2Fdojo3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uggla%2Fdojo3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uggla%2Fdojo3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uggla%2Fdojo3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uggla","download_url":"https://codeload.github.com/uggla/dojo3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245040189,"owners_count":20551301,"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-14T09:11:01.720Z","updated_at":"2025-03-23T00:46:25.552Z","avatar_url":"https://github.com/uggla.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coding Dojo #3\n\nA rust exercise to be done in a coding dojo.\n\nThe goal is to create a small\n[intro](https://en.wikipedia.org/wiki/Crack_intro).\n\n## Expectations\n\nGive participants some Rust insight that will give them\nmotivations to learn more.\nThis is also an experimentation to know if this approach could help people\nto start and learn Rust.\n\n## Instruction\n\n### Part 1\n\n- Create a starfield.\n  - ⚠️  (0,0) is not the screen center.\n  - Stars are darker and smaller in the center of the screen.\n  - Advice refactor to use modules.\n\n### Part  2\n\n- Create a sinus, rainbow scrolling text.\n  - Advice refactor to use a builder pattern.\n\n# Build and run instructions\n## Run Locally (mainly for development purposes)\n\n1. Clone the project\n\n```bash\n  git clone https://github.com/uggla/dojo3\n```\n\n2. Go to the project directory\n\n```bash\n  cd dojo3\n```\n\n### Native\n1. Install Rust following the instructions [here](https://www.rust-lang.org/fr/learn/get-started).\n\n   *Tips: the rustup method is the simplest one.*\n\n2. Install required library for macroquad\n\n* Ubuntu system dependencies\n```bash\napt install pkg-config libx11-dev libxi-dev libgl1-mesa-dev libasound2-dev\n```\n\n* Fedora system dependencies\n```bash\ndnf install libX11-devel libXi-devel mesa-libGL-devel alsa-lib-devel\n```\n\n* Windows and MacOS system\n```\nNo dependencies are required for Windows or MacOS\n```\n\n3. Run\n```bash\ncargo run --release\n```\n\n#### Wasm32 client\n\n1. Follow the above instruction of the native build.\n\n2. Install basic-http-server\n```bash\ncargo install basic-http-server\n```\n\n3. Add the wasm32 compilation target\n```bash\nrustup target add wasm32-unknown-unknown\n```\n\n4. Run\n```bash\ncargo build --target wasm32-unknown-unknown --release\n```\n\n5. Serve the files and open the browser\n```bash\nbasic-http-server\nxdg-open http://127.0.0.1:4000\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuggla%2Fdojo3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuggla%2Fdojo3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuggla%2Fdojo3/lists"}