CodeClimbersIO / cli

The cli for the project
MIT License
13 stars 11 forks source link

CLI: Add delay to the startup message for when the application is actually started #163

Closed rphovley closed 2 months ago

rphovley commented 2 months ago

The CLI outputs the url localhost:14400 and if you click on it immediately, often the server hasn't fully booted up yet.

While wait, show the message: "Starting server... please wait"

Setup a short polling system to wait until localhost:14400 is available. Once the server is available, print out the message with localhost.

Cycle 10 times at a 3 second interval, for each cycle print "..." in a new line. If the server hasn't booted, print out the message: "It seems the server is having trouble starting, run the command cat ~/.codeclimbers/codeclimbers_error.log to investigate the issue further"