examples/basic/readme.md
# Basic example of ZeroServer and ZeroClient
`server.py` has the ZeroServer. Exposing some methods at `localhost:5559`.
Call these methods from `client.py`.
## Run
From the project root directory
- Setup project
```bash
python3 -m venv venv
source venv/bin/activate
pip install -r examples/basic/requirements.txt
```
- Start the server
```bash
python -m examples.basic.server
```
- Run the client
```bash
python -m examples.basic.client
```
## Docker
- Build the server
```bash
docker build -t ananto/zero-basic -f examples/basic/Dockerfile .
```
- Run the server
```bash
docker run -p 5559:5559 ananto/zero-basic
```
- Run the client
```bash
python -m examples.basic.client
```