chesslablab/spablab

Error in project

zakiyousufi opened this issue · 3 comments

When I ran the Project I got some errors on the console

errorr

The error message suggests that there is an issue with constructing a WebSocket connection in the code. The URL 'wss://undefined:undefined' is being passed to the WebSocket constructor, which is invalid.

Thank you @zakiyousufi for asking this question!

The app should be accessed through this URL.

https://www.chesslablab.com:9443/

These are the default settings defined in the .env.example file.

HOST=www.chesslablab.com
HTTPS=true
PORT=9443

REACT_APP_API_HOST=pchess.net
REACT_APP_API_PORT=443

REACT_APP_WS_HOST=pchess.net
REACT_APP_WS_PORT=8443

figure_01

BTW, did you try to add the following entry to your /etc/hosts file?

127.0.0.1       www.chesslablab.com

Happy coding!

Hii , I tried doing the steps you gave above and i seem to have done all of those
My etc/hosts
image
My env.example
image
On trying to access 9443 port
image

I forked and git cloned this repo, did npm install . and it automatically opened localhost:3000 which couldn't establish connection after npm start .
I didn't do this step (cp .env.example .env) because i couldnt understand what it is and is it windows or linux command

npm start should automatically open https://www.chesslablab.com:9443