{"id":18614792,"url":"https://github.com/andrewjbateman/angular-pwa-game","last_synced_at":"2026-04-13T20:03:09.525Z","repository":{"id":39705192,"uuid":"156448513","full_name":"AndrewJBateman/angular-pwa-game","owner":"AndrewJBateman","description":":clipboard: Angular Progressive Web App, Tutorial code from Fireship.io","archived":false,"fork":false,"pushed_at":"2024-01-10T00:28:06.000Z","size":5048,"stargazers_count":1,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-17T01:34:27.185Z","etag":null,"topics":["angular","angular16","api","css","firebase","fireship","html","nebula","pwa","tictactoe-game","typescript"],"latest_commit_sha":null,"homepage":"https://angular-pwa-tictactoe.firebaseapp.com/","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/AndrewJBateman.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":"2018-11-06T21:12:56.000Z","updated_at":"2023-07-22T10:55:35.000Z","dependencies_parsed_at":"2024-11-07T03:40:55.518Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/angular-pwa-game","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndrewJBateman/angular-pwa-game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-pwa-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-pwa-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-pwa-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-pwa-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/angular-pwa-game/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-pwa-game/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31768662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["angular","angular16","api","css","firebase","fireship","html","nebula","pwa","tictactoe-game","typescript"],"created_at":"2024-11-07T03:27:00.129Z","updated_at":"2026-04-13T20:03:09.508Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :zap: Angular PWA TicTacToe\n\n* App using Angular to show a tictactoe game that is deployed to Firestore at [https://angular-pwa-tictactoe.firebaseapp.com/](https://angular-pwa-tictactoe.firebaseapp.com/).\n* Tutorial code from [Jeff Delaney at Fireship](https://fireship.io/) - see [:clap: Inspiration](#clap-inspiration) below, updated to latest dependency versions\n* **Note:** to open web links in a new window use: _ctrl+click on link_\n\n![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/angular-pwa-game?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/angular-pwa-game?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/angular-pwa-game?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/angular-pwa-game?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Angular PWA TicTacToe](#zap-angular-pwa-tictactoe)\n  * [:page\\_facing\\_up: Table of contents](#page_facing_up-table-of-contents)\n  * [:books: General info](#books-general-info)\n  * [:camera: Screenshots](#camera-screenshots)\n  * [:signal\\_strength: Technologies](#signal_strength-technologies)\n  * [:floppy\\_disk: Setup](#floppy_disk-setup)\n  * [:computer: Code Examples](#computer-code-examples)\n  * [:cool: Features](#cool-features)\n  * [:clipboard: Status \\\u0026 To-Do List](#clipboard-status--to-do-list)\n  * [:clap: Inspiration](#clap-inspiration)\n  * [:file\\_folder: License](#file_folder-license)\n  * [:envelope: Contact](#envelope-contact)\n\n## :books: General info\n\n* Simple tictactoe game that shows a message when a player wins.\n* Firestore hosting used to make the game available on the web.\n* [Angular service worker](https://angular.io/guide/service-worker-intro) added to manage app caching and help this to be a Progressive Web App (PWA).\n\n## :camera: Screenshots\n\n![Example screenshot](./img/game.png).\n\n## :signal_strength: Technologies\n\n* [Angular v16](https://angular.io/)\n* [Nebular UI Customising v11](https://akveo.github.io/nebular/)]\n* [Angular Service Worker v16](https://github.com/angular/angular)\n* [Angular Firebase library v7](https://www.npmjs.com/package/@angular/fire)\n\n## :floppy_disk: Setup\n\n* `npm i` to install dependencies\n* `ng serve` for a dev server.\n* Navigate to `http://localhost:4200/`. The app does automatically reload if you change any of the source files\n* `npm run build` to create the build file\n* `firebase use --add` to link this app to firebase project already created, then `firebase deploy` to deploy app\n* See the app on the web at [https://angular-pwa-tictactoe.firebaseapp.com/](https://angular-pwa-tictactoe.firebaseapp.com/)\n\n## :computer: Code Examples\n\n* Code to calculate the winner, by Jeff Delaney at [Fireship.io](https://fireship.io/).\n\n```typescript\ncalculateWinner() {\n    const lines = [\n      [0, 1, 2],\n      [3, 4, 5],\n      [6, 7, 8],\n      [0, 3, 6],\n      [1, 4, 7],\n      [2, 5, 8],\n      [0, 4, 8],\n      [2, 4, 6]\n    ];\n    for (let i = 0; i \u003c lines.length; i++) {\n      const [a, b, c] = lines[i];\n      if (\n        this.squares[a] \u0026\u0026\n        this.squares[a] === this.squares[b] \u0026\u0026\n        this.squares[a] === this.squares[c]\n      ) {\n        return this.squares[a];\n      }\n    }\n    return null;\n  }\n```\n\n## :cool: Features\n\n* Game works offline thanks to the PWA service worker.\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: Working\n* To-Do: Improve lighthouse score (currently 85%).\n\n## :clap: Inspiration\n\n* [Fireship: Youtube tutorial 'Angular for Beginners - Let's build a Tic-Tac-Toe PWA'](https://www.youtube.com/watch?v=G0bBLvWXBvc)\n\n## :file_folder: License\n\n* This project is licensed under the terms of the MIT license.\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://github.com/AndrewJBateman), email: `gomezbateman@yahoo.com`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-pwa-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fangular-pwa-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-pwa-game/lists"}