# Runing
## Runing Using docker compose
```
docker compose up -d
```
after this service is available on localhost

# Development
## install prerequisites
### Redis
```
docker compose up redis -d
```
### Virtual environment
```
python -m venv .venv
```
### External dependencies
#### windows
```
.venv\Scripts\activate
pip install -r requirements.txt
```
#### linux
```
source .venv\bin\activate
pip install -r requirements.txt
```

## Run in development mode
#### windows
```
.venv\Scripts\activate
python main.py
```
#### linux
```
source .venv\bin\activate
python main.py
```

# Usage
## login
[http://localhost:8000/static/index.html](http://localhost:8000/static/index.html)
## WS
[http://localhost:8000/ws/socket.io/?EIO=4&transport=polling&t=PI4D1vz](http://localhost:8000/ws/socket.io/?EIO=4&transport=polling&t=PI4D1vz)
## ballance update
[http://localhost:8000/events/?player_id=2&currency=gold&amount=100](http://localhost:8000/events/?player_id=2&currency=gold&amount=100)
