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:
18
README.md
18
README.md
@@ -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
|
||||
|
||||

|
||||

|
||||
|
||||
## 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)
|
||||
|
||||
Reference in New Issue
Block a user