首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何与码头和deepstream.io建立项目?

如何与码头和deepstream.io建立项目?
EN

Stack Overflow用户
提问于 2018-05-08 03:32:32
回答 1查看 388关注 0票数 2

https://github.com/PhillippOhlandt/deepstream-turn-based-game-demo

我复制了这个回购,并试图让它启动和运行,但我认为我错过了一步。

我在文件夹中运行npm install,我还在我的mac上安装了对接器。然后我运行docker-compose up并启动它。当我去本地的时候什么都没发生?

我想我不完全明白这是怎么回事..。

更新

代码语言:javascript
复制
deepstream_1    |       _                     _                              _
deepstream_1    |    __| | ___  ___ _ __  ___| |_ _ __ ___  __ _ _ __ ___   (_) ___
deepstream_1    |   / _` |/ _ \/ _ \ '_ \/ __| __| '__/ _ \/ _` | '_ ` _ \  | |/ _ \
deepstream_1    |  | (_| |  __/  __/ |_) \__ \ |_| | |  __/ (_| | | | | | |_| | (_) |
deepstream_1    |   \__,_|\___|\___| .__/|___/\__|_|  \___|\__,_|_| |_| |_(_)_|\___/
deepstream_1    |                  |_|
deepstream_1    |  =========================   starting   ==========================
deepstream_1    | INFO | logger ready
deepstream_1    | INFO | deepstream version: 2.1.2
deepstream_1    | INFO | configuration file loaded from /etc/deepstream/config.yml
deepstream_1    | INFO | library directory set to: /var/lib/deepstream
deepstream_1    | INFO | messageConnector ready
deepstream_1    | INFO | storage ready
deepstream_1    | INFO | cache ready
deepstream_1    | INFO | authenticationHandler ready: file using /etc/deepstream/users.yml
deepstream_1    | INFO | permissionHandler ready: valve permissions loaded from /etc/deepstream/permissions.yml
deepstream_1    | INFO | Listening for health checks on path /health-check
deepstream_1    | CLUSTER_JOIN | jgx4b6kz-1y8u6be9n0744
deepstream_1    | INFO | Listening for websocket connections on 0.0.0.0:6020/deepstream
deepstream_1    | INFO | Deepstream started
deepstream_1    | INCOMING_CONNECTION | from undefined (172.18.0.3)
deepstream_1    | AUTH_ATTEMPT | 172.18.0.3: AREQ{"username":"backend","password":"password"}
deepstream_1    | AUTH_SUCCESSFUL | backend
gameprovider_1  | LOGIN true { username: 'backend', role: 'backend' }
deepstream_1    | S | for P:get-game-types by backend
deepstream_1    | S | for P:create-game by backend
deepstream_1    | S | for P:join-game by backend
deepstream_1    | S | for P:leave-game by backend
deepstream_1    | S | for P:turn by backend
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-05-08 04:54:43

游戏演示是可行的,但创建者应该增加几行友好的手册。不过,别担心,我会在这里替你报道的。

  1. 运行docker-compose up后,在http://localhost:8088/打开浏览器
  2. 输入用户名: userA密码:密码
  3. 创建一个新游戏并注意GameID
  4. http://localhost:8088/打开另一个浏览器选项卡
  5. 输入用户名: userB密码:密码
  6. 加入之前提到的GameID游戏,你就可以开始玩了。

这个游戏支持多达4个用户,为了保护作者,他们创建了一个youtube视频,但是忘记了提供一些有用的说明,比如密码是什么。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50225395

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档