Coder Social home page Coder Social logo

wzdwc / texaspokergame Goto Github PK

View Code? Open in Web Editor NEW
92.0 6.0 49.0 9.22 MB

This is an online Texas Hold'em game, base on TypeScript,egg,node,vue,javascript

TypeScript 57.56% JavaScript 0.33% HTML 0.32% Vue 41.23% Less 0.56%
typescript texas poker vue node egg socket javascript

texaspokergame's Introduction

Texas Poker Game

This is an online Texas Hold'em game, base on TypeScript,Egg,Node.js,Vue

Server

base on midway.js,TypeScript, socket.io, mysql.

Detail: server-readme

Client

base on vue-cli, TypeScript, socket.io.

Detail: client-readme

Project structure

├─client
├─database
│  └─poker.sql
└─server

Demo

See: demo img

img

img

img

img

License

The MIT License (MIT)

texaspokergame's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

texaspokergame's Issues

Installing on Ubuntu

Hello wzdwc :),

Any chance of helping me install this on ubuntu? Im texas holdem poker fun and player, would love to see how this app works :)

Cheers.

Collaboration

Hey, me again :)

Since I completed installation and tried this app (working really nice) I wanted to see if there is a chance to get in touch on PM somewhere (email, discord) for a potential collaboration. I would like to suggest you a couple of ideas and would like to see what you think about them.

Cheers

client端在yarn dev时报错,是因为ts版本太高吗?

2021-10-27 10:38:00,048 ERROR 25932 nodejs.TSError: ⨯ Unable to compile TypeScript:
src/app/io/controller/game.ts(181,26): error TS2790: The operand of a 'delete' operator must be optional.
src/app/io/controller/game.ts(284,18): error TS2790: The operand of a 'delete' operator must be optional.
src/app/io/controller/game.ts(348,11): error TS2783: 'counter' is specified more than once, so this usage will be overwritten.
src/app/io/controller/game.ts(349,11): error TS2783: 'buyIn' is specified more than once, so this usage will be overwritten.
src/app/io/controller/game.ts(412,18): error TS2790: The operand of a 'delete' operator must be optional.

src/app/io/controller/game.ts(181,26): error TS2790: The operand of a 'delete' operator must be optional.
src/app/io/controller/game.ts(284,18): error TS2790: The operand of a 'delete' operator must be optional.
src/app/io/controller/game.ts(348,11): error TS2783: 'counter' is specified more than once, so this usage will be overwritten.
src/app/io/controller/game.ts(349,11): error TS2783: 'buyIn' is specified more than once, so this usage will be overwritten.
src/app/io/controller/game.ts(412,18): error TS2790: The operand of a 'delete' operator must be optional.

at createTSError (D:\Poker\TexasPokerGame\server\node_modules\midway-bin\node_modules\ts-node\src\index.ts:261:12)
at getOutput (D:\Poker\TexasPokerGame\server\node_modules\midway-bin\node_modules\ts-node\src\index.ts:367:40)
at Object.compile (D:\Poker\TexasPokerGame\server\node_modules\midway-bin\node_modules\ts-node\src\index.ts:558:11)
at Module.m._compile (D:\Poker\TexasPokerGame\server\node_modules\midway-bin\node_modules\ts-node\src\index.ts:439:43)
at Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Object.require.extensions.<computed> [as .ts] (D:\Poker\TexasPokerGame\server\node_modules\midway-bin\node_modules\ts-node\src\index.ts:442:12)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:92:18)

diagnosticText: "src/app/io/controller/game.ts(181,26): error TS2790: The operand of a 'delete' operator must be optional.\r\nsrc/app/io/controller/game.ts(284,18): error TS2790: The operand of a 'delete' operator must be optional.\r\nsrc/app/io/controller/game.ts(348,11): error
TS2783: 'counter' is specified more than once, so this usage will be overwritten.\r\nsrc/app/io/controller/game.ts(349,11): error TS2783: 'buyIn' is specified more than once, so this usage will be overwritten.\r\nsrc/app/io/controller/game.ts(412,18): error TS2790: The operand of a 'delete' operator must be optional.\r\n"
diagnosticCodes: [2790,2790,2783,2783,2790]

不知道下一步该怎么办了

server那边按照readme,执行到npm start这一步,没有报错。
image
client那边也按照readme,执行到yarn serve这一步,没有报错。
image
搭了nginx转发请求,配置如下:
image
现在的问题是:

  1. 如果不使用nginx,访问不了服务器(华为云的)的7001和8080端口;
  2. nginx的默认页面显示403;
  3. nginx的转发页面(加/poker)显示一片空白(title是“poker-game-front-ts”)。

下一步到底该干什么。。。

服务端错误

为什么服务端所有请求都是返回"Internal Server Error, real status: 500"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.