{"id":19901274,"url":"https://github.com/vbrazhnik/red-tetris","last_synced_at":"2026-04-09T01:32:27.421Z","repository":{"id":220985364,"uuid":"238329710","full_name":"VBrazhnik/Red-Tetris","owner":"VBrazhnik","description":"School 42 project // Multiplayer Tetris [Node.js, Socket.io, React, Redux]","archived":false,"fork":false,"pushed_at":"2020-02-07T19:54:14.000Z","size":3618,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-27T10:43:46.462Z","etag":null,"topics":["42","42projects","42school","born2code","ecmascript2015","ecmascript6","javascript","js","node-js","react","red-tetris","redux","socket-io","tetris","tetris-game","unitfactory"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/VBrazhnik.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}},"created_at":"2020-02-04T23:40:44.000Z","updated_at":"2024-04-04T14:53:38.000Z","dependencies_parsed_at":"2024-02-05T15:53:31.552Z","dependency_job_id":"85e9acf3-36a8-45e1-bc3b-a0c94a34196f","html_url":"https://github.com/VBrazhnik/Red-Tetris","commit_stats":null,"previous_names":["vbrazhnik/red-tetris"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VBrazhnik/Red-Tetris","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VBrazhnik%2FRed-Tetris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VBrazhnik%2FRed-Tetris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VBrazhnik%2FRed-Tetris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VBrazhnik%2FRed-Tetris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VBrazhnik","download_url":"https://codeload.github.com/VBrazhnik/Red-Tetris/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VBrazhnik%2FRed-Tetris/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31581864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["42","42projects","42school","born2code","ecmascript2015","ecmascript6","javascript","js","node-js","react","red-tetris","redux","socket-io","tetris","tetris-game","unitfactory"],"created_at":"2024-11-12T20:14:32.797Z","updated_at":"2026-04-09T01:32:27.401Z","avatar_url":"https://github.com/VBrazhnik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Red Tetris\n\n![Loading screen](/images/loading-screen.png)\n\n**Red Tetris** is a School 42 project. The purpose of this project is to create multiplayer Tetris.\n\n[`red_tetris.en.pdf`](/red_tetris.en.pdf) is the task file.\n\n## Requirements\n\nIt is a Full-Stack JavaScript project. So installed [Node.js](https://nodejs.org) and [npm](https://www.npmjs.com/get-npm) are required:\n\n* Node.js \u003e= 8.0.0 (`node --version`)\n* npm \u003e= 5.0.0 (`npm --version`)\n\n\u003e Note: npm is installed with Node.js.\n\n## How to install?\n\nClone repository:\n\n```\ngit clone \u003crepository url\u003e\n```\n\nThen go into the created directory and install `node_modules`:\n\n```\nnpm install\n```\n\n## How to start?\n\nTo start the server run the following command:\n\n```\nnpm start\n```\n\nThe server will start on [http://127.0.0.1:3000](http://127.0.0.1:3000).\n\n\u003e Note: Configuration (host and port) can be changed in [`.env`](/.env) file.\n\n## How to join the room?\n\nTo join the room use the URL with the following structure:\n\n`http://127.0.0.1:3000/#\u003croom-name\u003e[\u003cplayer-name\u003e]`\n\n* `\u003croom-name\u003e` is a placeholder of the name of the room\n* `\u003cplayer-name\u003e` is a placeholder of the name of the player\n\nFor example, to join room **“42”** under the name **“vbrazhni”** use [http://127.0.0.1:3000/#42[vbrazhni]](http://127.0.0.1:3000/#42[vbrazhni]).\n\n\u003e Note: Also, the URL can be encoded — [http://127.0.0.1:3000/#42%5Bvbrazhni%5D](http://127.0.0.1:3000/#42%5Bvbrazhni%5D)\n\n![Pending single game](/images/pending-single-game.png)\n\n![Running single game](/images/running-single-game.png)\n\n## How to test?\n\nTo run unit tests use:\n\n```\nnpm test\n```\n\nAlso, Red Tetris project has the following requirements of the code coverage:\n\n* Statements — 70+%\n* Branches — 50+%\n* Functions — 70+%\n* Lines — 70+%\n\nTo get the detailed report about the code coverage of each file run:\n\n```\nnpm run test:coverage\n```\n\nTo get the summary report use:\n\n```\nnpm run test:coverage:summary\n```\n\n## How to make available on another computer?\n\nYou can use [ngrok](https://ngrok.com/) to make Red Tetris available worldwide.\n\nAfter setup, run the following command:\n\n```\n./ngrok http 3000\n```\n\nngrok will provide the URL which can be shared with anyone:\n\n![ngrok](/images/ngrok.png)\n\nWith that URL other people will be able to play Red Tetris via the Internet.\n\n![Running multiplayer game](/images/running-multiplayer-game.png)\n\n![Completed multiplayer game](/images/completed-multiplayer-game.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvbrazhnik%2Fred-tetris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvbrazhnik%2Fred-tetris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvbrazhnik%2Fred-tetris/lists"}