An app to take your drink rounds.
Requires python3. Install with homebrew brew install python
or your favourite package manager.
Tests use the unittest testing library and pytest to run the tests. Install with pip using pip3 install unittest
and pip3 install pytest
.
See requirements.txt
for any further pip packages to install. Can use pip install -r requirements.txt
to install everything contained at once.
Expects database connection parameters to be in a file called param.py
in /src/cls/
with contents as follows:
hostname = "hostname"
username = "username"
password = "password"
database_name = "db_name"
- from command line: in the root directory, run
python3 -m src.brIW1
- otherwise: the main script is
/src/brIW.py
so run this in your IDE of choice
From command line at root directory:
python3 -m src.api.api
Is currently hosted on port 8081.
Tests are in /test
. To run all tests:
python3 -m pytest
To get test coverage:
pytest -m src --cov=src test
Fork this repository. Do some things. Submit a pull request to master. Thanks!