{"id":18256921,"url":"https://github.com/mediacomem/comem-wopr","last_synced_at":"2025-10-05T18:19:21.518Z","repository":{"id":40528546,"uuid":"232864368","full_name":"MediaComem/comem-wopr","owner":"MediaComem","description":"Play tic-tac-toe against the WOPR","archived":false,"fork":false,"pushed_at":"2024-11-10T16:37:12.000Z","size":398,"stargazers_count":0,"open_issues_count":17,"forks_count":42,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T18:38:29.251Z","etag":null,"topics":["ruby","sinatra","svelte","tic-tac-toe","wopr"],"latest_commit_sha":null,"homepage":"https://comem-wopr.herokuapp.com","language":"Ruby","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/MediaComem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2020-01-09T17:20:54.000Z","updated_at":"2024-11-10T16:37:15.000Z","dependencies_parsed_at":"2025-04-04T18:32:14.633Z","dependency_job_id":"9be8e978-e038-4e2c-aa17-f6951a353ccb","html_url":"https://github.com/MediaComem/comem-wopr","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/MediaComem/comem-wopr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MediaComem%2Fcomem-wopr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MediaComem%2Fcomem-wopr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MediaComem%2Fcomem-wopr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MediaComem%2Fcomem-wopr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MediaComem","download_url":"https://codeload.github.com/MediaComem/comem-wopr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MediaComem%2Fcomem-wopr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278495723,"owners_count":25996655,"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-10-05T02:00:06.059Z","response_time":54,"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":["ruby","sinatra","svelte","tic-tac-toe","wopr"],"created_at":"2024-11-05T10:24:08.980Z","updated_at":"2025-10-05T18:19:21.497Z","avatar_url":"https://github.com/MediaComem.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WOPR\n\nPlay tic-tac-toe against the WOPR.\n\n[![build](https://github.com/MediaComem/comem-wopr/actions/workflows/build.yml/badge.svg)](https://github.com/MediaComem/comem-wopr/actions/workflows/build.yml)\n[![publish](https://github.com/MediaComem/comem-wopr/actions/workflows/publish.yml/badge.svg)](https://github.com/MediaComem/comem-wopr/actions/workflows/publish.yml)\n[![license](https://img.shields.io/github/license/MediaComem/comem-wopr)](https://opensource.org/licenses/MIT)\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n\n- [Installation](#installation)\n  - [Requirements](#requirements)\n  - [Initial setup](#initial-setup)\n- [Usage](#usage)\n  - [Run in development mode](#run-in-development-mode)\n  - [Run in production mode](#run-in-production-mode)\n- [Updating](#updating)\n- [Configuration](#configuration)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n\n\n## Installation\n\n### Requirements\n\n* [Ruby](https://www.ruby-lang.org) 3.x\n* [Node.js](https://nodejs.org) 22.x\n* [Redis](https://redis.io) 4+\n\n### Initial setup\n\n```bash\n# Clone the repository\ngit clone https://github.com/MediaComem/comem-wopr.git\ncd comem-wopr\n\n# Configure Bundler.\nbundle config set path 'vendor/bundle'\n\n# Install dependencies (Ruby gems \u0026 npm packages).\nbundle install\nnpm ci\n\n# Build the web assets.\nnpm run build\n```\n\n\n\n## Usage\n\n### Run in development mode\n\n```\ncd /path/to/application\nbundle exec ruby app.rb\n```\n\n### Run in production mode\n\nSet the `$WOPR_ENV` environment variable to run the application in production\nmode:\n\n```\ncd /path/to/application\nWOPR_ENV=production bundle exec ruby app.rb\n```\n\nYou should point your Apache or nginx web server to the application's `public`\ndirectory, which contains its static files.\n\n\n\n## Updating\n\nYour deployment workflow should install new dependencies and re-build the web\nassets every time the frontend's source code is updated:\n\n```bash\ncd /path/to/application\nbundle install\nnpm install\nnpm run build\n```\n\n\n\n## Configuration\n\nThe following environment variables can be set to customize the application's behavior:\n\nVariable                        | Default value              | Description\n:------------------------------ | :------------------------- | :-------------------------------------------\n`WOPR_ENV`                      | `development`              | Set to `production` for deployment.\n`WOPR_PORT` or `PORT`           | 4567                       | Port on which to listen to.\n`WOPR_REDIS_PREFIX`             | `wopr:`                    | Prefix prepended to all Redis database keys.\n`WOPR_REDIS_URL` or `REDIS_URL` | `redis://localhost:6379/0` | Redis connection URL.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmediacomem%2Fcomem-wopr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmediacomem%2Fcomem-wopr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmediacomem%2Fcomem-wopr/lists"}