2 Somehow friendly API to get and share coffee related data from database.
6 For running tasks periodically, please see [Timers][6] and [User][7] pages
7 about systemd on archlinux wiki.
9 The example `top5_mate_stats.service`:
12 Description=Run top 5 Mate drinkers stats
15 Environment=PYTHONPATH=/path/to/coffee-getter/repo/
16 ExecStart=/path/to/coffee-getter/repo/run/top5_mate_stats.py
19 The example `top5_mate_stats.timer`:
22 Description=Run top 5 Mate drinkers stats each Mon 9am
25 OnCalendar=Mon *-*-* 09:00:00
29 WantedBy=timers.target
32 Both files must be stored in `~/.config/systemd/user/` directory.
34 Then enable timer and service by:
36 systemctl --user enable top5_mate_stats.timer
37 systemctl --user enable top5_mate_stats.service
42 systemctl --user start top5_mate_stats.timer
47 For quick orientation see the [changelog][1].
49 Please, think about [The seven rules of a great Git commit message][2] when
50 making commit. The project use [OneFlow][3] branching model with the `master`
51 branch as the branch where the development happens.
54 Test Driven Development (TDD) is used in this project. Each *feature* **must**
55 start with adding test and all the tests **must** pass before merge to the
60 python3 -m unittest discover ut/
63 See [unittest][5] for start.
66 By default, sqlite3 `coffee.db` file is needed. You may create testing copy of
70 from ut.test_db import create_test_db
71 create_test_db("coffee.db")
75 Database is needed to pass the tests.
78 This project is developed under [GNU GPLv3 license][4].
81 [2]: https://chris.beams.io/posts/git-commit/
82 [3]: http://endoflineblog.com/oneflow-a-git-branching-model-and-workflow
84 [5]: https://docs.python.org/3.5/library/unittest.html
85 [6]: https://wiki.archlinux.org/index.php/Systemd/Timers
86 [7]: https://wiki.archlinux.org/index.php/Systemd/User