{"id":23407430,"url":"https://github.com/parth-darji/multiplayer_ttt_socket","last_synced_at":"2026-04-11T02:48:19.729Z","repository":{"id":268089557,"uuid":"902877759","full_name":"parth-darji/multiplayer_ttt_socket","owner":"parth-darji","description":"A multiplayer Tic Tac Toe game app built with Flutter for the front-end and Node.js with Express and Socket.io for the back-end. This full-stack project demonstrates real-time gameplay using WebSocket technology.","archived":false,"fork":false,"pushed_at":"2024-12-26T06:33:27.000Z","size":7403,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T00:36:42.384Z","etag":null,"topics":["dart","flutter","nodejs","socket-io"],"latest_commit_sha":null,"homepage":"","language":"Dart","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/parth-darji.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-13T13:04:00.000Z","updated_at":"2024-12-26T06:33:30.000Z","dependencies_parsed_at":"2025-02-14T19:01:37.360Z","dependency_job_id":null,"html_url":"https://github.com/parth-darji/multiplayer_ttt_socket","commit_stats":null,"previous_names":["parth-darji/flutter_ttt_socket","parth-darji/multiplayer_ttt_socket"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/parth-darji/multiplayer_ttt_socket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parth-darji%2Fmultiplayer_ttt_socket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parth-darji%2Fmultiplayer_ttt_socket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parth-darji%2Fmultiplayer_ttt_socket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parth-darji%2Fmultiplayer_ttt_socket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parth-darji","download_url":"https://codeload.github.com/parth-darji/multiplayer_ttt_socket/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parth-darji%2Fmultiplayer_ttt_socket/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265872226,"owners_count":23842148,"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":["dart","flutter","nodejs","socket-io"],"created_at":"2024-12-22T14:19:29.796Z","updated_at":"2026-04-11T02:48:14.670Z","avatar_url":"https://github.com/parth-darji.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multiplayer Tic Tac Toe Game\n\nA multiplayer Tic Tac Toe game app built with Flutter for the front-end and Node.js with Express and Socket.io for the back-end. This full-stack project demonstrates real-time gameplay using WebSocket technology.\n\n## Demo\n\n![Demo](demo.gif)\n\n## Features\n\n- **Real-Time Multiplayer Gameplay:** Play Tic Tac Toe with opponents in real time.\n- **WebSocket Communication:** Seamless communication using Socket.io.\n- **Modern UI:** Built with Flutter, providing a smooth and responsive user experience.\n- **Backend with Node.js:** Scalable and efficient server-side code.\n- **Cross-Platform Support:** Available on both Android and iOS.\n\n## Tech Stack\n\n### Front-End\n\n- **Framework:** Flutter\n- **Language:** Dart\n\n### Back-End\n\n- **Framework:** Express.js\n- **Language:** JavaScript (Node.js)\n- **Real-Time Communication:** Socket.io\n- **Database:** MongoDB\n\n## Prerequisites\n\nBefore starting, ensure you have the following installed:\n\n- **Flutter SDK**: [Installation Guide](https://flutter.dev/docs/get-started/install)\n- **Node.js**: Latest LTS version. [Download Node.js](https://nodejs.org/)\n- **MongoDB**: A running MongoDB instance for storing data.\n\n### Current Versions Used\n\n- **Node.js**: v20.13.1\n- **NPM**: v10.5.2\n\n---\n\n## Steps to Run\n\n### 1. Update Wi-Fi IP Address\n\n1. Find your system's Wi-Fi IP address from the connected Wi-Fi settings.\n2. Open the `lib/resources/socket_client.dart` file.\n3. Replace the IP placeholder with your current Wi-Fi IP.\n\n### 2. Back-End Setup\n\n1. Navigate to the `server` folder:\n\n   ```\n   cd server\n   ```\n\n2. (Optional) Update the MongoDB connection URL:\n\n   1. Open index.js in the server folder.\n   2. Replace the MongoDB URL with your own MongoDB instance if needed.\n\n3. Install dependencies:\n\n   ```\n   npm install\n   ```\n\n4. Start the server in development mode:\n   ```\n   npm run dev\n   ```\n\n### 3. Front-End Setup\n\n1.  Go back to the root of the project.\n2.  Install Flutter dependencies:\n\n    ```\n    flutter pub get\n    ```\n\n3.  Run the app:\n\n    ```\n    flutter run\n    ```\n\n4.  Testing the App\n\n    1. Run the project on two devices (physical or emulators).\n    2. Both devices should be connected to the same Wi-Fi network.\n    3. Test the real-time gameplay functionality.\n\n## Troubleshooting\n\n### 1. Server not starting?\n\n- Ensure Node.js and NPM are correctly installed.\n- Check your MongoDB instance and update the URL in index.js.\n\n### 2. WebSocket connection failing?\n\n- Double-check the Wi-Fi IP address in lib/resources/socket_client.dart.\n\n### 3. App not connecting to the server?\n\n- Ensure both devices are connected to the same Wi-Fi network.\n\n## Contributing\n\nContributions are welcome! To contribute:\n\n1.  Fork the repository.\n\n2.  Create a new branch (git checkout -b feature/your-feature-name).\n\n3.  Commit your changes (git commit -m 'Add your message here').\n\n4.  Push the branch (git push origin feature/your-feature-name).\n\n5.  Open a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparth-darji%2Fmultiplayer_ttt_socket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparth-darji%2Fmultiplayer_ttt_socket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparth-darji%2Fmultiplayer_ttt_socket/lists"}