Reworked setup.py, now you can run cmd_chat directly. Reworked sanic http webserver to make it work. Update readme, etc...

This commit is contained in:
mirai
2023-11-27 14:30:01 +03:00
parent c5fa982f65
commit 316a0e3e1e
7 changed files with 76 additions and 67 deletions
+3 -18
View File
@@ -27,35 +27,20 @@ if __name__ == '__main__':
```
### Or (Windows)
### Or
Start server:
```
.\cmd_chat.bat serve localhost 5000
cmd_chat serve localhost 5000
```
Connect to server:
```
.\cmd_chat.bat connect localhost 5000 tyler
cmd_chat connect localhost 5000 tyler
```
### Or (Linux)
Start server:
```
python3 cmd_chat.py serve localhost 5000
```
Connect to server:
```
python3 cmd_chat.py connect localhost 5000 tyler
```
How does encryption work?
* The client generates a private key.