{"id":26964475,"url":"https://github.com/nicklayb/c4","last_synced_at":"2025-04-03T06:32:30.403Z","repository":{"id":186610520,"uuid":"675364364","full_name":"nicklayb/c4","owner":"nicklayb","description":"Elixir implementation of Connect 4 with a TCP client","archived":false,"fork":false,"pushed_at":"2023-08-08T04:28:09.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-15T03:51:36.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nicklayb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-06T17:08:30.000Z","updated_at":"2023-12-19T04:10:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"8078bee5-1810-444b-8c83-834cea8a5fd2","html_url":"https://github.com/nicklayb/c4","commit_stats":null,"previous_names":["nicklayb/c4"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicklayb%2Fc4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicklayb%2Fc4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicklayb%2Fc4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicklayb%2Fc4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicklayb","download_url":"https://codeload.github.com/nicklayb/c4/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246948072,"owners_count":20859374,"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":"2025-04-03T06:31:44.331Z","updated_at":"2025-04-03T06:32:30.378Z","avatar_url":"https://github.com/nicklayb.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C4\n\nConnect 4 game with TCP front end\n\n## Installation\n\n### Local deployment\n\n#### Requirements\n\n- `direnv` for local environment configuration\n\n#### Create env file\n\nCreate a `../.c4.envrc` file and add at least the following\n\n```\nexport C4_TCP_SERVER_PORT=6677\n```\n\n#### Start server\n\n```bash\niex -S mix\n\n# or \n\nmake dev\n```\n\nThe server will launch locally with hostname `localhost` and port `6677`.\n\n### Docker deployment\n\nBuild the continer\n\n```bash\nmake docker-build\n```\n\nStart the container\n\n```bash\ndocker run -p 6677:6677 -e C4_TCP_SERVER_PORT=6677 c4:latest\n```\n\n## Connect\n\nUsing either `nc` or `telnet`, simply connect to ther server's endpoint.\n\n```bash\ntelnet localhost 6677\n```\n\nYou should see a \"Welcome\" message with some indication.\n\n## General usage\n\nWhen connecting to the server, the first thing you need to do is enter a username. The username will then be shown in the prompt confirming. You can then run `help` to see what you can do.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicklayb%2Fc4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicklayb%2Fc4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicklayb%2Fc4/lists"}