updated README.md
This commit is contained in:
30
README.md
30
README.md
@@ -3,6 +3,36 @@
|
|||||||
|
|
||||||
# Install
|
# Install
|
||||||
|
|
||||||
|
clone project from git
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone https://git.tetalab.org/frtk/nodePong.git
|
git clone https://git.tetalab.org/frtk/nodePong.git
|
||||||
```
|
```
|
||||||
|
|
||||||
|
nodejs dependencies: packages already included in the "node_modules" directory, or remove dir and install them manually
|
||||||
|
|
||||||
|
```
|
||||||
|
cd nodePong
|
||||||
|
npm install fs
|
||||||
|
npm install colors
|
||||||
|
npm install express
|
||||||
|
npm install http
|
||||||
|
npm install socket.io
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
# Parameters
|
||||||
|
|
||||||
|
- Server:
|
||||||
|
Server parameters can be tweaked from "nodePong/server/server_params.js"
|
||||||
|
- *port*: http and iostream port (default: 8042)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Run
|
||||||
|
|
||||||
|
From the nodePong directory,
|
||||||
|
|
||||||
|
```
|
||||||
|
nodejs nodePong.js
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user