Skip to content

Repository files navigation

BallGame

License: MIT BallGame CI Codacy Badge

A statistical baseball simulation.

Setup

Install Python libraries:

uv sync

To create and populate the database run: (delete the database file if it already exists)

  1. Migrate to saved state
echo "migrate..."
python manage.py migrate
  1. Publish migrations and migrate BallGame app
echo "make migrations..."
python manage.py makemigrations BallGame
python manage.py migrate BallGame

Admin App

If not already done, create super-user with

python manage.py createsuperuser

If unsure, try with "admin/admin"

Test

Run tests with

python manage.py test BallGame

How the players database is created

The database player is created when running the second migration, 'player_userattributes'.

Virtual Environment

Activate with

source ./venv/bin/activate

Deactivate with

deactivate

Crispy Forms

This project uses Crispy Forms for Bootstrap:

https://django-crispy-forms.readthedocs.io/en/latest/

About

A statistical baseball simulation in Django

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages