add linux server tutorial to the readme

This commit is contained in:
cracker0dks 2016-03-28 00:28:35 +02:00
parent 1381e2227d
commit 854f99f497

View File

@ -3,12 +3,28 @@ Familienduell Client / Server (NodeJs Javascript)
### START DES SERVERS!
___Windows mit NodeJs___
1.1 Im Ordner "server" die Datei StartServer.bat doppelklicken.
1.2 Im Fenster das jetzt erscheint sollte: "Websocket Server running at ws://127.0.0.1:8080" stehen.
1.3 Falls die Firewall fragt, solltest du die Anfrage zulassen da sonst der client nicht verbinden kann.
___Linux mit Python___
1.1 Installiere Pyton3 mit pip und git
`sudo apt-get install python3 python3-pip git -y`
1.2 Installiere Websockets für Python3
`pip3 install asyncio websockets`
1.3 Servercode downloaden
`git clone https://github.com/cracker0dks/Familienduell.git`
1.4 Ins Serververzeichnis wecheseln
`cd Familienduell/Server`
1.4 Starte den Server
`python3 server.py`
1.5 In der Console erscheint: "info>starting server 0.0.0.0:8080"
### START DES CONTROLLERS!
2.1 in den Ordner "web" wechseln und die datei "index.html" mit dem Browser (Chrome) öffnen! (Dieses Programm wurde für Chrome entwickelt und sonst nicht getestet.)