No description
- Python 99%
- HTML 0.9%
commas will still be present when formatting with a currency symbol, but when just the raw amount is requested then no separators will be added. |
||
|---|---|---|
| .github/workflows | ||
| admin | ||
| alembic | ||
| cosmos | ||
| data_gen | ||
| scripts | ||
| tests | ||
| .coveragerc | ||
| .dockerignore | ||
| .gitignore | ||
| alembic.ini | ||
| Dockerfile | ||
| poetry.lock | ||
| pyproject.toml | ||
| README.md | ||
| style.sh | ||
Bink Provided Loyalty 2.0
Setup
CREATE DATABASE cosmos;poetry install- To include admin dependencies,
poetry install -E admin - To include all dependencies (including admin, dev, test):
poetry install --all-extras
- create a
local.envfile in the root directory (below)
Example local.env
REDIS_URL=redis://localhost:6379/0
POSTGRES_PASSWORD=postgres
LOG_FORMATTER=brief
SQL_DEBUG=True
Data generation (bestla)
poetry run bestla --password postgres -B --retailer trenette --max-val 100 --add-fetch-types --refund-window 10 -c trenette-campaign -L STAMPS
Running APIs
Accounts API
poetry run cosmos api --port 8000 --reload accounts
Transactions API
poetry run cosmos api --port 8000 --reload transactions
Admin Panel
poetry run python admin/wsgi.py
Testing
Checking unit test coverage
Run pytest with cov-report
pytest --verbose --cov cosmos --cov-report html
Then open the html report
open htmlcov/index.html