{"id":27946395,"url":"https://github.com/one-zero-eight/sport","last_synced_at":"2026-03-11T23:04:03.884Z","repository":{"id":38457337,"uuid":"245796491","full_name":"one-zero-eight/sport","owner":"one-zero-eight","description":"InnoSport platform at Innopolis University. Students check in for sport classes, instructors manage the schedule and collect attendance: https://sport.innopolis.university","archived":false,"fork":false,"pushed_at":"2026-03-06T07:15:51.000Z","size":9909,"stargazers_count":8,"open_issues_count":17,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-06T11:48:03.378Z","etag":null,"topics":["adminpanel","django","grafana","python","sports"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/one-zero-eight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-03-08T10:46:35.000Z","updated_at":"2026-03-06T07:15:54.000Z","dependencies_parsed_at":"2024-03-28T19:31:08.519Z","dependency_job_id":"530a77a1-13fd-46e4-852a-d4ef7c157b9c","html_url":"https://github.com/one-zero-eight/sport","commit_stats":null,"previous_names":["innopolissport/swp_sport_back"],"tags_count":71,"template":false,"template_full_name":null,"purl":"pkg:github/one-zero-eight/sport","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-zero-eight%2Fsport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-zero-eight%2Fsport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-zero-eight%2Fsport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-zero-eight%2Fsport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/one-zero-eight","download_url":"https://codeload.github.com/one-zero-eight/sport/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/one-zero-eight%2Fsport/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30406401,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T22:36:59.286Z","status":"ssl_error","status_checked_at":"2026-03-11T22:36:57.544Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adminpanel","django","grafana","python","sports"],"created_at":"2025-05-07T13:54:31.766Z","updated_at":"2026-03-11T23:04:03.879Z","avatar_url":"https://github.com/one-zero-eight.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# InnoSport website\n\n[![Tests](https://github.com/one-zero-eight/sport/actions/workflows/tests.yaml/badge.svg)](https://github.com/one-zero-eight/sport/actions/workflows/tests.yaml)\n[![Production deploy](https://github.com/one-zero-eight/sport/actions/workflows/deploy_production.yaml/badge.svg)](https://github.com/one-zero-eight/sport/actions/workflows/deploy_production.yaml)\n\nThe platform for conducting, tracking and checking students' sports activity at Innopolis University.\n\n## Development\n\n### Set up for development\n\n1. Install [Python 3.12](https://www.python.org/downloads/), [Poetry](https://python-poetry.org/docs/),\n   [Docker](https://docs.docker.com/engine/install/)\n2. Install project dependencies with [Poetry](https://python-poetry.org/docs/cli/#options-2).\n   ```bash\n   cd adminpage\n   poetry install\n   ```\n3. Copy environment variables: `cp deploy/.example.env deploy/.env` (leave default values in development)\n4. Start services: `docker compose -f ./deploy/docker-compose.yaml up --build`\n5. Make migrations and create superuser:\n   - Enter shell: `docker compose -f ./deploy/docker-compose.yaml exec -it adminpanel bash`\n   - Autocreate migration files: `python3 manage.py makemigrations`\n   - Apply migrations to db: `python3 manage.py migrate`\n     \u003e If there are problems with migrations applying, try to run the same migrate command with `--fake` option.\n   - Create a new superuser: `python3 manage.py createsuperuser`\n6. View Admin panel at http://localhost/admin and Swagger at http://localhost/api/swagger\n\n\u003e [!NOTE]\n\u003e Server supports auto-reload on code change in debug mode\n\n### Commands\n\n- Dump database\n  ```bash\n  docker compose -f ./deploy/docker-compose.yaml exec -t db pg_dumpall -c -U postgres \u003e ./sport_dump.sql\n  ```\n- Drop database (**dangerous!**)\n  ```bash\n  docker compose -f ./deploy/docker-compose.yaml down\n  # Dangerous!!! - immediately removes all database data\n  docker volume rm sport_db-data\n  ```\n- Setup database from dump and apply migrations\n  ```bash\n  sh scripts/setup_sport_database.sh ./sport_dump.sql\n  ```\n\n### Project structure\n\n```\n.\n├── adminpage - Django project\n│   ├── adminpage - main django app\n│   │   ├── settings.py\n│   │   ├── swagger.py\n│   │   ├── urls.py\n│   │   └── wsgi.py\n│   ├── api\n│   │   ├── crud - directory with database queries\n│   │   ├── fixtures - database tools for testing\n│   │   ├── serializers - DRF serializers\n│   │   ├── tests\n│   │   │   ├── api - endpoints tests\n│   │   │   └── crud - database queries tests\n│   │   └── views - api endpoints\n│   ├── sport\n│   │   ├── admin - django adminpage classes\n│   │   ├── dumps - database dumps for tests\n│   │   ├── migrations - django database migrations\n│   │   ├── models - django database models\n│   │   ├── signals - django ORM signal handlers\n│   │   ├── static - static files for app (css, fonts, images, js)\n│   │   │   └── sport\n│   │   │       ├── css\n│   │   │       ├── fonts\n│   │   │       ├── images\n│   │   │       └── js\n│   │   ├── templates - django templates for app pages\n│   │   └── views - app pages url handlers\n├── deploy - deployment configuration\n│   ├── docker-compose.yaml - development Docker Compose file\n│   ├── docker-compose.prod.yaml - production Docker Compose file\n│   ├── docker-compose.test.yaml - services for automatic testing\n│   ├── .example.env - example of environment variables\n│   ├── nginx-conf - reverse proxy configuration\n│   ├── nginx-logs - request logs\n│   ├── grafana-provisioning - default dashboards for Grafana\n│   └── prometheus - Prometheus configs\n├── scripts - development tools\n└── README.md\n```\n\n## Flows\n\n### Releasing a new version\n\n1. Merge your changes to 'main' branch.\n2. Verify that a new version works on the staging server.\n3. Create a new tag with the version number in the format `vF24.22.20`,\n   where F24 is the semester number and 22.20 is the release number.\n   You can create the tag via GitHub releases tab.\n4. Ask maintainer (@ArtemSBulgakov) to allow the deployment via GitHub Actions.\n5. Verify that changes work on the production server.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fone-zero-eight%2Fsport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fone-zero-eight%2Fsport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fone-zero-eight%2Fsport/lists"}