Service for transactions in the Books project.
This service is intended to be the source of truth for transactions in the Books project. This includes reads and writes, though those may be handled in isolation. This is a python 3 project.
To run the service,
./scripts/run.sh
This script will start a flask web server. Note that this is not suitable as a production ready server.
This project includes a docker-compose.yml
file for setting up the entire development environment. This will stand up a local CouchDB instance and connect it to the local instance of the service. Note that there are some requirements to setup the database for the first time that are not part of the compose file (documentation @TODO). To use, simple run,
docker-compose up
This project uses CouchDB to store records.
To run unit tests,
./scripts/test.sh
This script will simply call the appropriate python programs to run all unit tests with pytest.
This project is attempting to use the new python type checking. For the time being it is run using mypy. To run the type checking,
./scripts/typecheck.sh
I found this PyCon 2018 video very informative. I don't have any plans to use Pyre until there is an option to ignore missing imports.