{"id":19418769,"url":"https://github.com/jeevanbabu7/chess-game","last_synced_at":"2026-06-17T19:01:58.723Z","repository":{"id":245332684,"uuid":"817943752","full_name":"jeevanbabu7/chess-game","owner":"jeevanbabu7","description":"Multiplayer chess game using web socket server.","archived":false,"fork":false,"pushed_at":"2024-10-09T18:02:07.000Z","size":709,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T03:43:08.072Z","etag":null,"topics":["mern-project","websocket-server"],"latest_commit_sha":null,"homepage":"https://chess-game-phi-ten.vercel.app","language":"JavaScript","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/jeevanbabu7.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-06-20T19:14:03.000Z","updated_at":"2024-10-09T18:02:11.000Z","dependencies_parsed_at":"2024-11-10T13:15:05.584Z","dependency_job_id":"79357001-26c4-459e-b36c-cd8ca0bd5233","html_url":"https://github.com/jeevanbabu7/chess-game","commit_stats":null,"previous_names":["jeevanbabu7/chess-game"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jeevanbabu7/chess-game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeevanbabu7%2Fchess-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeevanbabu7%2Fchess-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeevanbabu7%2Fchess-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeevanbabu7%2Fchess-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeevanbabu7","download_url":"https://codeload.github.com/jeevanbabu7/chess-game/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeevanbabu7%2Fchess-game/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34461618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"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":["mern-project","websocket-server"],"created_at":"2024-11-10T13:15:02.481Z","updated_at":"2026-06-17T19:01:58.679Z","avatar_url":"https://github.com/jeevanbabu7.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chess Game\r\n\r\nA web-based multiplayer chess game built with React and JavaScript, using MongoDB, Express.js, WebSocketServer for real-time updates, and Material-UI for styling. Move validation is handled using the `chess.js` library.\r\n\r\n\r\n## Features\r\n\u003cul\u003e\r\n\t\u003cli\u003e\u003cstrong\u003eReal-time updates\u003c/strong\u003e: Moves are updated in real-time using WebSockets.\u003c/li\u003e\r\n\t\u003cli\u003e\u003cstrong\u003eMove validation\u003c/strong\u003e: Validates all moves using `chess.js` to ensure they comply with chess rules.\u003c/li\u003e\r\n\u003c/ul\u003e\r\n\r\n## Tech Stack\r\n\r\n-   **Frontend**: React, Material-UI\r\n-   **Backend**: Node.js, Express.js\r\n-   **Database**: MongoDB\r\n-   **Real-Time**: WebSocketServer\r\n-   **Move Validation**: chess.js.\r\n\r\n## Installation\r\nTo run this project locally, follow these steps:\r\n\t\r\n \t0. Install vite\r\n\t\tnpm install vite\r\n\t1. Clone the repository:\r\n\t\thttps://github.com/jeevanbabu7/chess-game.git\r\n\r\n\t2. Navigate to the project directory:\r\n\t\tcd chess-game\r\n\t\t\r\n\t3. Install the dependencies for both frontend and backend:\r\n\t\tcd client\r\n\t\tnpm install\r\n\t\tcd ../backend1\r\n\t\tnpm install\r\n\t4. Set up environment variables:\r\n\t\t- Create a `.env` file in the `server` directory.\r\n\t\t- Add the following variables: \r\n\t\t\t- DB_STR=\u003cyour-mongo-uri\u003e\r\n\t\t\t- JWT_SECRET=\u003ckey to generating jwt tokens\u003e\r\n\t\r\n\t5. Start the application:\r\n\t\t// Start the backend cd server npm start:\r\n\t\t\tcd backend1\r\n\t\t\tnpm start\r\n\t\t// In another terminal, start the frontend\r\n\t\t\tcd frontend\r\n\t\t\tnpm run dev\r\n\t6. Open your browser and go to `http://localhost:5173'\r\n\r\n\r\n### Backend architecture\r\n![web Socket server architecture](webSocketServer.png)\r\n\r\n\r\n\r\n# Future improvements\r\n\r\n**AI Opponent**: Implement an AI for players to compete against when no other online players are available.\u003cbr\u003e\r\n**Spectator Mode**: Allow users to watch live games between other players.\u003cbr\u003e\r\n**Game Analysis \u0026 Free Review**:\r\n\r\n-   Introduce a **game review** feature similar to Chess.com, allowing players to analyze their games after completion.\r\n-   Show the best, good, and blunder moves for each turn, and provide suggestions for improvement.\r\n-   Include a move-by-move analysis, showing potential winning strategies and key turning points.\r\n-   Offer the **review feature for free**, letting players improve their chess skills by reviewing their gameplay without needing a subscription.\u003cbr\u003e\r\n\r\n\u003cstrong\u003e Sharable Game Links\u003c/strong\u003e:  Allow players to generate a link that they can send to friends to invite them to join and play a game directly.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeevanbabu7%2Fchess-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeevanbabu7%2Fchess-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeevanbabu7%2Fchess-game/lists"}