Skip to content

PokerStatsData is a web application for converting and organizing poker session statistics.

Notifications You must be signed in to change notification settings

rYauheni/PokerStatsData

Repository files navigation

PokerStatsData

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.


Technologies

Python Django

Gunicorn Nginx

HTML CSS JavaScript

PostgreSQL SQLite

Docker

GitHub


Installation

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

QuickStart for development

  1. Determine the value of environment variables in the file .env

  2. 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
    
  3. 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
    
  4. 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
    
  5. 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
    

Launch for production

  1. Determine the value of environment variables in the file .env

  2. Run docker container with command:

    docker-compose up
    
  3. Apply migrations:

    docker-compose exec web python manage.py migrate --noinput --settings=poker_stats_data.settings.prod
    
  4. Create superuser

    docker-compose exec web python manage.py createsuperuser --settings=poker_stats_data.settings.prod
    

Contributing

Bug reports and/or pull requests are welcome


License

The app is dedicated to the public domain under the CC0 license

About

PokerStatsData is a web application for converting and organizing poker session statistics.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published