Example

Very interesting example, yeah!

Local development

Installation and setup

First of all you should install Poetry using official instructions or solutions provided by your distro. Then install dependencies:

poetry install --no-root

Run PostgreSQL using provided docker-compose configuration:

docker-compose up  # run it in another terminal or add `-d` to daemonize

Now install migrate CLI to work with database migrations and migrate database:

migrate -database "postgres://guest:guest@localhost:5432/guest?sslmode=disable" -path migrations up

Compile protocol buffers:

make recompile-proto

Lint and test

Project uses combination of flake8, black, isort and mypy for linting and pytest for testing. Run them with make:

make lint
make test