alexander171294 / web-poker

This project is for web Angular/Nativescript (Web/Mobile) poker client and Java/Spring websocket backend
Other
12 stars 9 forks source link

Setup environment #32

Closed taieb92 closed 3 years ago

taieb92 commented 4 years ago

Hello,

I am trying to deploy the game on my local machine. I could make it up and running and create and user and login. But I couldnt join a table. Everytime I try to join the automatically. created table I get Connecting to server message and nothing happens. Here a screenshot

Screenshot 2020-05-01 at 11 48 10

Can you give me more insights about the topic?

taieb92 commented 4 years ago

I also see in the room logs

INFO 54223 --- [MessageBroker-8] a.c.tandilweb.room.handlers.GameHandler : [Room Monitor] Users in table: [null,null,null,null,null,null,null,null,null,null]

Maybe it has something to do with the issue

wade-liwei commented 4 years ago

@taieb92

the same problem for me. Do you want to write codes for the project ? If you are good at angular, I can rewrite the backend.

taieb92 commented 4 years ago

I didnt go too deep in the code but it looks to me in a good state. just some bug fixing is needed. Why do you think that it makes sense to rewrite the BE?

This exact issue is happening in the BackwardValidation step. The user data and data response are null and it crashes with a null pointer exception. I added the null validation but it doesnt help. I dont get it why the user data is null in that case

alexander171294 commented 4 years ago

Hi!, I think something is wrong with clean startup, maybe is the database migration or something like this, let me check tomorrow when I have time.

Thanks for the info, I will try to reproduce the error.

taieb92 commented 4 years ago

I am trying to fix it as well. I saw that you are aware of it as you wrote a fix me comment next to the bug. looks like the game is working for you. Is there a work around to make it work currently for me so that i can try a full game? I have it installed locally from the command line

wade-liwei commented 4 years ago

Why do you think that it makes sense to rewrite the BE?

because of I just know a little about JAVA and I want to integrate it with blockchain. I am a golang developer.

alexander171294 commented 4 years ago

Hi!, we push around 200 commits, I think the bug is fixed, please retry.

wade-liwei commented 4 years ago

Got it, I will try.

Thank you so much.

wade-liwei commented 4 years ago

same problem happen

alexander171294 commented 4 years ago

try with this link: http://web-poker.tandilserver.com/ if it works, I think that you may have miss configuration in database or something.

wade-liwei commented 4 years ago

I can not access the URL: http://web-poker.tandilserver.com/ ; Could you please share me your other chat account, I will share you my server login. Please help me setup the poker server.

hardikjain29 commented 4 years ago

@taieb92 - Stuck at the same thing. Were you able to figure something out?

alexander171294 commented 4 years ago

kardikjain29 Are you running using docker?

https://github.com/alexander171294/web-poker/wiki/Docker-Getting-Started

Check your database, if exists and check if flyway has created the tables

hardikjain29 commented 4 years ago

image image

Yes @alexander171294, I have done through the process in the docker wiki. Attached the table values for rooms.

Also, I have started the room-poker container on 8085 and made code changes to change the port. Could it be because of this?

hardikjain29 commented 4 years ago

The connection is made to the room-poker, otherwise it says An error occurred, disconnected from server, the page reload in 5 seconds. but it's stuck at 'Last validation. nothing happens after that.

alexander171294 commented 4 years ago

It can be, please share me your F12 console and networks calls.

hardikjain29 commented 4 years ago

image

image

image

image

alexander171294 commented 4 years ago

You can upload logs of docker logs (Room and Orchestrator logs).

https://docs.docker.com/engine/reference/commandline/logs/

wade-liwei commented 4 years ago

how's going with the problem ?