game-2048-server:适用于2048游戏的简单nodeJS服务器

上传者: 42165490 | 上传时间: 2022-04-12 11:45:17 | 文件大小: 22KB | 文件类型: ZIP
2048游戏服务器 适用于2048游戏的简单nodeJS服务器 要启动服务器,请在终端中运行以下命令: npm i npm run run-server 要在本地计算机上设置mongoDB(所有步骤仅与macOS用户有关): brew tap mongodb/brew brew install mongodb-community@4.2 brew services start mongodb-community@4.2 如果您使用Catalina OS,请运行mkdir -p /Users/user/data/db和所有来自命令 mongod --dbpath=/Users/user/data/db --replSet "rs" -设置复制集 mongo - > rs.initiate() - > use gamesDb - > db.createCollection( '房

文件下载

资源详情

[{"title":"( 19 个子文件 22KB ) game-2048-server:适用于2048游戏的简单nodeJS服务器","children":[{"title":"game-2048-server-master","children":[{"title":"package.json <span style='color:#111;'> 700B </span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'> 32.12KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"environment.ts <span style='color:#111;'> 113B </span>","children":null,"spread":false},{"title":"database","children":[{"title":"index.ts <span style='color:#111;'> 5.06KB </span>","children":null,"spread":false},{"title":"models.ts <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false}],"spread":true},{"title":"routes.ts <span style='color:#111;'> 692B </span>","children":null,"spread":false},{"title":"controllers","children":[{"title":"createDeviceIdController.ts <span style='color:#111;'> 383B </span>","children":null,"spread":false},{"title":"createRoomController.ts <span style='color:#111;'> 961B </span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'> 243B </span>","children":null,"spread":false}],"spread":true},{"title":"webSocket","children":[{"title":"server.ts <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false},{"title":"clients","children":[{"title":"roomListClient.ts <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"gameEvent.ts <span style='color:#111;'> 584B </span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'> 760B </span>","children":null,"spread":false},{"title":"roomClient.ts <span style='color:#111;'> 3.74KB </span>","children":null,"spread":false}],"spread":true},{"title":"index.ts <span style='color:#111;'> 118B </span>","children":null,"spread":false}],"spread":true},{"title":"index.ts <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false}],"spread":true},{"title":"tsconfig.json <span style='color:#111;'> 399B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 644B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明