{"id":24743480,"url":"https://github.com/marat200118/websockets-assignment","last_synced_at":"2026-04-13T00:41:32.054Z","repository":{"id":226628739,"uuid":"759449530","full_name":"Marat200118/Websockets-Assignment","owner":"Marat200118","description":"Devine - Creative Code 4 (Websockets assignment)","archived":false,"fork":false,"pushed_at":"2024-03-08T16:00:58.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T21:45:20.228Z","etag":null,"topics":["expressjs","javascript","nodejs","websocket"],"latest_commit_sha":null,"homepage":"","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/Marat200118.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-02-18T16:19:13.000Z","updated_at":"2024-03-08T15:40:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"674abdfa-b324-477c-993a-381e8f7b9788","html_url":"https://github.com/Marat200118/Websockets-Assignment","commit_stats":null,"previous_names":["marat200118/websockets-assignment"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Marat200118/Websockets-Assignment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marat200118%2FWebsockets-Assignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marat200118%2FWebsockets-Assignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marat200118%2FWebsockets-Assignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marat200118%2FWebsockets-Assignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Marat200118","download_url":"https://codeload.github.com/Marat200118/Websockets-Assignment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marat200118%2FWebsockets-Assignment/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260081964,"owners_count":22956220,"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":["expressjs","javascript","nodejs","websocket"],"created_at":"2025-01-28T01:36:16.031Z","updated_at":"2026-04-13T00:41:27.017Z","avatar_url":"https://github.com/Marat200118.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Real-Time Snake Game Controller Application with Node.js, Express, and Socket.IO\n\nThis repository contains the source code for a real-time game controller application built with Node.js, Express, and Socket.IO. It demonstrates real-time communication between a server and clients, utilizing device orientation for control inputs and providing a visual feedback mechanism via a web interface.\n\nUser is able to control the snake in the game using either gyroscope controls or button controls. The game state and score are updated in real-time across all connected clients.\n\n## Features\n\n- Real-time control method selection (Gyroscope or Button controls).\n- Dynamic visual feedback for gyroscope controls using device orientation data.\n- Real-time score updates and game state management across clients.\n- Responsive design for both desktop and mobile devices.\n\n## Interface\n\n### Snake game\n\u003cimg width=\"1463\" alt=\"Screenshot 2024-03-08 at 16 56 48\" src=\"https://github.com/Marat200118/Websockets-Assignment/assets/37581663/5cfb38db-65e4-4882-bb13-fa34443e8517\"\u003e\n\n### Controller\n\u003cimg width=\"300\" alt=\"Screenshot 2024-03-08 at 16 56 01\" src=\"https://github.com/Marat200118/Websockets-Assignment/assets/37581663/6794c028-0eee-4cf1-b613-a3b93a2d1389\"\u003e\n\u003cimg width=\"300\" alt=\"Screenshot 2024-03-08 at 16 56 39\" src=\"https://github.com/Marat200118/Websockets-Assignment/assets/37581663/e4c85685-dfe8-49dd-9f1a-9bd9fa1ada1c\"\u003e\n\u003cimg width=\"300\" alt=\"Screenshot 2024-03-08 at 16 56 11\" src=\"https://github.com/Marat200118/Websockets-Assignment/assets/37581663/67488cbb-1281-4ad3-9ba2-b03f2408992d\"\u003e\n\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.\n\n### Prerequisites\n\nBefore you begin, ensure you have the following installed:\n- [Node.js](https://nodejs.org/en/) (version 12.x or later recommended)\n- [npm](https://www.npmjs.com/) (normally comes with Node.js)\n\n### Installation\n\n1. Clone the repository to your local machine:\n\n```bash\ngit clone https://github.com/your-github-username/your-repository-name.git\n```\n\n2. Navigate to the project root directory:\n\n```bash\ncd your-repository-name\n```\n\n3. Install the project dependencies:\n\n```bash\nnpm install\n```\n\n### Running the Application\n\nTo run the application, execute the following command:\n\n```bash\nnpm start\n```\n\nThe application will be accessible at `https://localhost:443` by default.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarat200118%2Fwebsockets-assignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarat200118%2Fwebsockets-assignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarat200118%2Fwebsockets-assignment/lists"}