{"id":27454130,"url":"https://github.com/shepherdwind/tri-facta","last_synced_at":"2025-04-15T13:58:46.811Z","repository":{"id":284257021,"uuid":"954044062","full_name":"shepherdwind/tri-facta","owner":"shepherdwind","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-13T00:25:42.000Z","size":992,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T13:58:40.832Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/shepherdwind.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-03-24T13:31:46.000Z","updated_at":"2025-04-13T00:25:45.000Z","dependencies_parsed_at":"2025-03-25T01:20:39.670Z","dependency_job_id":"6e84f653-4700-44e3-8700-2c76aaadfd8c","html_url":"https://github.com/shepherdwind/tri-facta","commit_stats":null,"previous_names":["shepherdwind/game","shepherdwind/tri-facta"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shepherdwind%2Ftri-facta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shepherdwind%2Ftri-facta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shepherdwind%2Ftri-facta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shepherdwind%2Ftri-facta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shepherdwind","download_url":"https://codeload.github.com/shepherdwind/tri-facta/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249085453,"owners_count":21210267,"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-15T13:58:46.149Z","updated_at":"2025-04-15T13:58:46.800Z","avatar_url":"https://github.com/shepherdwind.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tri-Facta\n\nA card game where players need to use their cards to form valid mathematical equations. The game combines strategy, mathematics, and fun!\n\nPlay now at: [https://tri.iling.fun/](https://tri.iling.fun/)\n\n\u003cimg src=\"public/triangle-diagram.svg\" alt=\"Triangle Diagram\" width=\"200\"\u003e\n\n## Features\n\n- Mathematical equation validation\n- Card-based gameplay mechanics\n- Modern and responsive UI\n- Docker support for easy deployment\n- Automated builds with GitHub Actions\n\n## Quick Start\n\n### Using Docker (Recommended)\n\n1. Pull the latest image from GitHub Container Registry:\n\n```bash\n# Pull the image\ndocker pull ghcr.io/shepherdwind/tri-facta:latest\n```\n\n2. Create a `docker-compose.yml` file with the following content:\n\n```yaml\nversion: '3.8'\n\nservices:\n  app:\n    image: ghcr.io/shepherdwind/tri-facta:latest\n    ports:\n      - '80:80'\n    restart: unless-stopped\n```\n\n3. Start the application:\n\n```bash\ndocker-compose up -d\n```\n\n4. Access the game at `http://localhost`\n\n### Manual Installation\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/shepherdwind/tri-facta.git\ncd tri-facta\n```\n\n2. Install dependencies:\n\n```bash\nnpm install\n```\n\n3. Start the development server:\n\n```bash\nnpm run dev\n```\n\n4. Access the game at `http://localhost:5173`\n\n## Development\n\n### Prerequisites\n\n- Node.js 18 or higher\n- npm 9 or higher\n\n### Building for Production\n\n1. Build the application:\n\n```bash\nnpm run build\n```\n\n2. Preview the production build:\n\n```bash\nnpm run preview\n```\n\n### Docker Images\n\nThe Docker images are automatically built and published to GitHub Container Registry (ghcr.io) using GitHub Actions. Images are available at:\n\n- Latest version: `ghcr.io/shepherdwind/tri-facta:latest`\n- Specific version: `ghcr.io/shepherdwind/tri-facta:v1.0.0` (replace with actual version)\n- Branch builds: `ghcr.io/shepherdwind/tri-facta:main` (or other branch names)\n\n#### Automated Builds\n\nThe following events trigger automatic Docker image builds:\n\n- Push to main branch\n- Creation of version tags (e.g., v1.0.0)\n- Pull requests to main branch\n\n#### Manual Build (Local Development)\n\nTo build and push a new Docker image locally:\n\n```bash\n# Build and push latest version\n./build.sh\n\n# Build and push specific version\n./build.sh v1.0.0\n```\n\n#### Pulling Images\n\nTo pull a specific version of the image:\n\n```bash\n# Pull using the pull script\n./pull.sh\n\n# Or manually pull\ndocker pull ghcr.io/shepherdwind/tri-facta:latest\n```\n\n## Game Rules\n\n1. Each player starts with a set of cards\n2. Players take turns to play cards\n3. Cards must form valid mathematical equations\n4. The first player to use all their cards wins\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshepherdwind%2Ftri-facta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshepherdwind%2Ftri-facta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshepherdwind%2Ftri-facta/lists"}