diff --git a/doc/running_locally.md b/doc/running_locally.md index 5b73b8f..390a025 100644 --- a/doc/running_locally.md +++ b/doc/running_locally.md @@ -100,6 +100,29 @@ Run the game: npm start ``` +You should see a message like this: +```bash +[server] > lean4-game@0.1.0 start_server +[server] > (cd server && lake build) && (cd relay && cross-env NODE_ENV=development nodemon -e mjs --exec "node ./index.mjs") +[server] +[client] +[client] > lean4-game@0.1.0 start_client +[client] > cross-env NODE_ENV=development vite --host +[client] +[server] [nodemon] 3.0.# +[server] [nodemon] to restart at any time, enter `rs` +[server] [nodemon] watching path(s): *.* +[server] [nodemon] watching extensions: mjs +[server] [nodemon] starting `node ./index.mjs` +[client] +[client] VITE v4.5.1 ready in \#\#\# ms +[client] +[client] ➜ Local: http://localhost:3000/ +[client] ➜ Network: http://###.###.###.##:3000/ +[client] [vite-plugin-static-copy] Collected 7 items. +[server] (node:#####) [DEP0040] [server] Listening on 8080 +``` + This takes a little time. Eventually, the game is available on http://localhost:3000/#/g/local/GameSkeleton. Replace `GameSkeleton` with the folder name of your local game. ## Modifying the GameServer