1
0
mirror of https://github.com/thib8956/tic-tac-toe-ws.git synced 2026-03-24 14:37:56 +00:00

fix: improve npm scripts and fix localhost detection

This commit is contained in:
2026-03-21 10:03:59 +01:00
parent ae7c3a4662
commit cccd62b8ad
8 changed files with 24 additions and 32 deletions

View File

@@ -1,21 +1,17 @@
# Tic tac toe websockets
Two players tic-tac-joe implemented with an HTML canvas and websockets
Two players tic-tac-joe implemented with an HTML canvas and websockets
![](screenshot.png)
![Screenshot](screenshot.png)
## How to run
```
// compilation of .mts files in watch mode
$ tsc -w
```shell
$ npm run build:watch
// serve static files (localhost:8000)
$ python serve.py
$ npm run serve
// run server
$ node server.mjs
$ npm run start:watch
```
Go to http://localhost:8000
Go to [](http://localhost:8000)