{"id":27455060,"url":"https://github.com/creack/corewar","last_synced_at":"2025-04-15T15:16:29.874Z","repository":{"id":288006796,"uuid":"965628337","full_name":"creack/corewar","owner":"creack","description":"Corewar in Golang","archived":false,"fork":false,"pushed_at":"2025-04-15T03:54:56.000Z","size":2584,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T15:16:25.044Z","etag":null,"topics":["corewar","ebitengine","epitech","game","golang","lexer","parser"],"latest_commit_sha":null,"homepage":"","language":"Go","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/creack.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,"zenodo":null}},"created_at":"2025-04-13T15:24:26.000Z","updated_at":"2025-04-15T03:55:00.000Z","dependencies_parsed_at":"2025-04-15T04:37:55.898Z","dependency_job_id":"e6464d0e-892b-4509-bb98-d7d930713bb7","html_url":"https://github.com/creack/corewar","commit_stats":null,"previous_names":["creack/corewar"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creack%2Fcorewar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creack%2Fcorewar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creack%2Fcorewar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creack%2Fcorewar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/creack","download_url":"https://codeload.github.com/creack/corewar/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249094935,"owners_count":21211837,"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":["corewar","ebitengine","epitech","game","golang","lexer","parser"],"created_at":"2025-04-15T15:16:29.096Z","updated_at":"2025-04-15T15:16:29.861Z","avatar_url":"https://github.com/creack.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Corewar\n\n## Live Demo\n\n[https://creack.github.io/corewar](https://creack.github.io/corewar)\n\n## Window mode\n\n```sh\ngo run go.creack.net/corewar/vm@latest\n\n# Or simply\ngo run ./vm\n```\n\n## WASM\n\n### One liner\n\n```sh\n# Without Docker\nenv -i HOME=${HOME} PATH=${PATH} go tool wasmserve ./vm\n\n# With Docker\nmake\n```\n\n### Details\n\nClone this repo:\n\n```sh\ngit clone https://github.com/creack/corewar\ncd corewar\n```\n\nRun:\n\n```sh\nenv -i HOME=${HOME} PATH=${PATH} go tool wasmserve ./vm\n```\n\nFor development, `wasmer` exposes an endpoint to do live reload.\n\nI recommend [reflex](https://github.com/cespare/reflex).\n\nWith `wasmer` running, run:\n\n```sh\ngo tool reflex curl -v http://localhost:8080/_notify\n```\n\n## Docker\n\nA Dockerfile is provided to build and run the WASM version.\n\n### Build\n\n```sh\ndocker build -t corewar .\n```\n\n### Regular run\n\nTo run the image, make sure to have:\n\n- `--rm` to avoid pollution\n- `-it` so the app receives signals\n- `-p` to expose the port 8080\n\nAny changes to the code will require to re-build the image.\n\n```sh\ndocker run --rm -p 8080:8080 -it corewar wasmserve .\n```\n\nYou can then access the WASM page at the Docker ip on port 8080. If in doubt about the IP, it is likely localhost.\n\n### Development run\n\nFor development, you can add `-v $(pwd):/app` to mount the local directory in the Docker container, the server will hot-reload when file changes.\n\n```sh\ndocker run --rm -p 8080:8080 -it -v $(pwd):/app corewar\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreack%2Fcorewar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcreack%2Fcorewar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreack%2Fcorewar/lists"}