PokerStatsData is a web application for converting and organizing poker session statistics in a dictionary-like manner (key-value pairs).
The application receives poker session data separated by a certain separator (space, by default). As a result, the application produces this data connected to the corresponding keys.
You can try the application here.
Run the following commands to bootstrap your environment.
For Windows:
git clone https://github.com/rYauheni/PokerStatsData.git
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
copy .env.template .env
For Linux:
git clone https://github.com/rYauheni/PokerStatsData.git
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
cp .env.template .env
-
Determine the value of environment variables in the file
.env
-
Run the app locally:
for Windows:
python manage.py runserver 0.0.0.0:8000 --settings=poker_stats_data.settings.dev
for Linux:
python3 manage.py runserver 0.0.0.0:8000 --settings=poker_stats_data.settings.dev
-
Run the app with gunicorn:
for Windows&Linux:
gunicorn poker_stats_data.wsgi:application --bind 0.0.0.0:8000 --env DJANGO_SETTINGS_MODULE=poker_stats_data.settings.dev
-
Apply migrations:
for Windows:
python manage.py migrate --settings=poker_stats_data.settings.dev
for Linux:
python3 manage.py migrate --settings=poker_stats_data.settings.dev
-
Run tests:
for Windows:
python manage.py test --settings=poker_stats_data.settings.dev
for Linux:
python3 manage.py test --settings=poker_stats_data.settings.dev
-
Determine the value of environment variables in the file
.env
-
Add your server IP address to
ALLOWED_HOSTS
andCSRF_TRUSTED_ORIGINS
in/poker_stats_data/settings/base.py/
. -
Run docker container with command:
docker compose up
-
Apply migrations:
docker compose exec web python manage.py migrate --noinput --settings=poker_stats_data.settings.prod
-
Create superuser
docker compose exec web python manage.py createsuperuser --settings=poker_stats_data.settings.prod
Bug reports and/or pull requests are welcome
The app is dedicated to the public domain under the CC0 license