Keep track of your daily habits.
Inspired by the excellent book Atomic Habits by James Clear
Please set your DATABASE_URL
environment variable:
cp .env-template .env
# update DATABASE_URL in .env
To run the uvicorn
webserver:
uvicorn habits.main:app --reload
Navigate to http://localhost:8000/docs to use the app!
pytest --cov=habits tests/
For more detail:
pytest --cov=habits tests/ --cov-report=html
Then open htmlcov/index.html
To see missing lines list:
pytest --cov=habits tests/ --cov-report term-missing