A boilerplate app with integration Wargaming public API for Graphene.
Install python packages in virtualenv:
cd gqlclans
mkvirtualenv gqlclans --python=python3.6
pip install -r requirements.txt
To run http server command:
python start_app.py
To run server with reload mode use aiohttp-devtools adev
comand:
adev runserver start_app.py --port=8567
Now you can visit http://localhost:8567 and play with GraphQL queries in GraphiQL console
To run backend container from docker:
docker create --name=gqlclans -t -i -p 8567:8567 sudoaptget/gqlclans:latest
docker start -i gqlclans
Service will be available via http://0.0.0.0:8567
After developing, the full test suite can be evaluated by running:
pytest --benchmark-skip # Use -v -s for verbose mode
You can also run the benchmarks with:
pytest --benchmark-only
For isolation, it could be better to use tox for running tests:
tox