OpenTrivia:使用React和Opentdb API的多人问答游戏演示

时间:2021-05-14 17:17:01
【文件属性】:
文件名称:OpenTrivia:使用React和Opentdb API的多人问答游戏演示
文件大小:179KB
文件格式:ZIP
更新时间:2021-05-14 17:17:01
react javascript game html api OpenTrivia 在后端使用express和socket.io并在UI上使用React的小型多人测验演示。 查看实时演示。 如何在本地使用: 克隆存储库并运行以下命令以下载所有依赖项。 npm install 现在,如果您只想启动服务器进行开发,请打开一个终端,运行以下命令。 npm run watch 如果要从src手动构建以测试生产,请使用以下命令。 npm run build:prod or npm run build:dev followed by npm run serve 打开浏览器,导航到主屏幕为 ,并将所有其他设备指向http:// your_internal_ip:3000,然后按照屏幕上的说明进行操作。
【文件预览】:
OpenTrivia-master
----.gitignore(45B)
----.babelrc(136B)
----jest.config.json(169B)
----package.json(2KB)
----server()
--------utils()
--------server.js(8KB)
----package-lock.json(482KB)
----src()
--------app.js(3KB)
--------components()
--------tests()
--------routers()
--------reducers()
--------actions()
--------styles()
--------store()
----webpack.config.js(2KB)
----LICENSE(11KB)
----public()
--------images()
--------index.html(543B)
----README.md(767B)

网友评论