{"id":25965067,"url":"https://github.com/nashie1004/online-chess","last_synced_at":"2025-12-02T09:04:52.102Z","repository":{"id":269696050,"uuid":"908159933","full_name":"nashie1004/online-chess","owner":"nashie1004","description":"online-chess: A simple, lightweight real time chess web app","archived":false,"fork":false,"pushed_at":"2025-03-03T11:22:38.000Z","size":20978,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T11:35:29.082Z","etag":null,"topics":["asp-net-core","aspnetcore","chess","csharp","game","phaser","react","signalr","sqlite","typescript"],"latest_commit_sha":null,"homepage":"http://nashandrew.xyz/","language":"TypeScript","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/nashie1004.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-25T09:54:54.000Z","updated_at":"2025-03-03T11:22:42.000Z","dependencies_parsed_at":"2024-12-25T12:19:04.946Z","dependency_job_id":"5d0b563f-c64b-4a3c-9981-110166176581","html_url":"https://github.com/nashie1004/online-chess","commit_stats":null,"previous_names":["nashie1004/online-chess"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nashie1004%2Fonline-chess","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nashie1004%2Fonline-chess/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nashie1004%2Fonline-chess/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nashie1004%2Fonline-chess/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nashie1004","download_url":"https://codeload.github.com/nashie1004/online-chess/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241924535,"owners_count":20043232,"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":["asp-net-core","aspnetcore","chess","csharp","game","phaser","react","signalr","sqlite","typescript"],"created_at":"2025-03-04T21:29:20.300Z","updated_at":"2025-12-02T09:04:52.096Z","avatar_url":"https://github.com/nashie1004.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/nashie1004/online-chess/refs/heads/master/online-chess.client/public/live-preview-800.png\"  style=\"object-fit: cover !important\" alt=\"preview-img\" /\u003e\n\u003c/p\u003e\n\n# Online-Chess\nA simple real time 2-player chess web application created with Phaser, React, Typescript, Bootstrap, ASP.NET Core SignalR and Identity, and SQLite. Other services used are NGINX, AWS EC2, and AWS S3. Uses .NET 9 and React 18.\nYou can view a demo [here](https://online-chess.xyz).\n\n## Installation (Local)\n1. Update the `UseNGINX`, `UseS3` and AWS credentials on `/online-chess.Server/appsettings.json` depending on your preference. Set the `UseS3` to false if you want to use the local file storage service or true if you want to use S3.\n```json\n\"AllowedOrigins\": \"https://localhost:5000\", \n\"UseNGINX\": false,\n\"UseS3\": false,\n\"AWS\": {\n    \"AccessKeyId\": \"your-value\",\n    \"SecretAccessKey\": \"your-value\",\n    \"Region\": \"ap-southeast-2\",\n    \"S3\": {\n        \"BucketName\": \"your-value\"\n    }\n}\n```\n2. Run the web app:\n```bash\ncd online-chess.client \nnpm run dev # Should be running on https://localhost:5000/\n\n# new terminal\ncd online-chess.Server\ndotnet watch # Should be running on https://localhost:44332/\n```\n\n## Installation (Deployment)\n1. Update the `AllowedOrigins`, `UseNGINX`, `UseS3` and AWS credentials on `/online-chess.Server/appsettings.json` depending on your preference:\n```json\n\"AllowedOrigins\": \"https://localhost:5000\"\n\"UseNGINX\": true,\n\"UseS3\": true,\n\"AWS\": {\n    \"AccessKeyId\": \"your-value\",\n    \"SecretAccessKey\": \"your-value\",\n    \"Region\": \"ap-southeast-2\",\n    \"S3\": {\n        \"BucketName\": \"your-value\"\n    }\n}\n```\n2. Update the `/online-chess.client/.env.production` file:\n```\nVITE_API_URL={{your-server}}\n```\n3. Publish and start:\n```bash\ndotnet publish --runtime linux-x64 --self-contained false # depends on your OS\ndotnet online-chess.Server.dll\n```\n\n## Credits\nAll [board](https://github.com/lichess-org/lila/blob/master/public/images/board/), [piece](https://github.com/lichess-org/lila/blob/master/public/piece/), and [sound](https://github.com/lichess-org/lila/blob/master/public/sound/) assets came from [Lichess'](https://github.com/lichess-org/lila) Github repository. Custom asset(s) and logo(s) were created using [Piskel](https://www.piskelapp.com/) and [SVGRepo](https://www.svgrepo.com/svg/509810/chess-board).\n\n## Remaining Todos (By Priority)\n- [ ] auto renew SSL\n- [ ] bug on offer draw\n- [ ] fifty move rule check\n- [ ] show proper chess move notation\n- [ ] proper elo\n- [ ] 3 fold repetition\n- [ ] queen side castling bug\n- [ ] responsive ui / resizeable board [Phaser](https://phaser.io/examples/v3.85.0/scalemanager/view/manually-resize)\n- [ ] some framer motion?, more sounds and some phaser effects\n- [ ] use redis\n- [ ] fix types\n- [ ] emoji to chatbox\n- [ ] google oauth\n- [ ] optimize other functions using nested loop, pass piece coordinates instead\n- [ ] lazy load \n- [ ] lack of material resulting in a draw\n- [ ] en passant original square not movable by other piece\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnashie1004%2Fonline-chess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnashie1004%2Fonline-chess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnashie1004%2Fonline-chess/lists"}