{"id":47920246,"url":"https://github.com/timothyf/ootp-db-explorer","last_synced_at":"2026-04-04T05:55:14.382Z","repository":{"id":347891197,"uuid":"1195634391","full_name":"timothyf/ootp-db-explorer","owner":"timothyf","description":"A utility that provides an admin console for exploring the Mysql database dump.","archived":false,"fork":false,"pushed_at":"2026-03-29T23:50:06.000Z","size":392,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-04T05:55:01.031Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timothyf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2026-03-29T22:36:41.000Z","updated_at":"2026-03-29T23:50:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/timothyf/ootp-db-explorer","commit_stats":null,"previous_names":["timothyf/ootp-db-explorer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/timothyf/ootp-db-explorer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timothyf%2Footp-db-explorer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timothyf%2Footp-db-explorer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timothyf%2Footp-db-explorer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timothyf%2Footp-db-explorer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timothyf","download_url":"https://codeload.github.com/timothyf/ootp-db-explorer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timothyf%2Footp-db-explorer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31389391,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T04:26:24.776Z","status":"ssl_error","status_checked_at":"2026-04-04T04:23:34.147Z","response_time":60,"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":[],"created_at":"2026-04-04T05:55:12.977Z","updated_at":"2026-04-04T05:55:14.377Z","avatar_url":"https://github.com/timothyf.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OOTP DB Explorer\n\nA web-based admin console for exploring the MySQL database export from **OOTP27** (Out of the Park Baseball 27).\n\nBrowse every table, paginate through rows, search within a table, follow foreign-key links, and see related records — all from a clean Bootstrap UI.\n\n---\n\n## Features\n\n- **Table browser** — lists every table in the database with column/FK counts\n- **Row viewer** — paginated, searchable view of any table\n- **FK badges** — columns that are primary keys (PK) or foreign keys (FK) are labelled\n- **FK navigation** — click a foreign-key value to jump to the referenced record\n- **Record detail** — full field list plus all related records from other tables that reference this record\n- **Responsive sidebar** — quick navigation to any table\n\n---\n\n## Requirements\n\n- Python 3.10+\n- A running MySQL server with the OOTP27 database imported\n\n---\n\n## Setup\n\n```bash\n# 1. Clone the repository\ngit clone https://github.com/timothyf/ootp-db-explorer.git\ncd ootp-db-explorer\n\n# 2. Create and activate a virtual environment\npython -m venv .venv\nsource .venv/bin/activate   # Windows: .venv\\Scripts\\activate\n\n# 3. Install dependencies\npip install -r requirements.txt\n\n# 4. Configure the database connection\ncp .env.example .env\n# Edit .env and fill in your MySQL credentials:\n#   DB_HOST, DB_PORT, DB_USER, DB_PASSWORD, DB_NAME\n```\n\n## Running\n\n```bash\npython app.py\n```\n\nThen open your browser at **http://localhost:5000**.\n\nFor production use, run with a WSGI server:\n\n```bash\npip install gunicorn\ngunicorn app:app -b 0.0.0.0:5000\n```\n\n---\n\n## Configuration (`.env`)\n\n| Variable          | Default     | Description                        |\n|-------------------|-------------|------------------------------------|\n| `DB_HOST`         | `localhost` | MySQL host                         |\n| `DB_PORT`         | `3306`      | MySQL port                         |\n| `DB_USER`         | `root`      | MySQL username                     |\n| `DB_PASSWORD`     | *(empty)*   | MySQL password                     |\n| `DB_NAME`         | `ootp_db`   | Database name                      |\n| `FLASK_SECRET_KEY`| *(random)*  | Flask session secret — change this |\n| `FLASK_DEBUG`     | `false`     | Enable Flask debug mode            |\n\n---\n\n## Project Structure\n\n```\nootp-db-explorer/\n├── app.py              # Flask application (routes, DB helpers)\n├── config.py           # Configuration from environment variables\n├── requirements.txt    # Python dependencies\n├── .env.example        # Example environment file\n├── static/\n│   └── style.css       # Custom CSS\n└── templates/\n    ├── base.html       # Base layout (navbar + sidebar)\n    ├── index.html      # Home — table list\n    ├── table.html      # Table browser (paginated + search)\n    ├── record.html     # Record detail + related records\n    └── error.html      # DB connection error page\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimothyf%2Footp-db-explorer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimothyf%2Footp-db-explorer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimothyf%2Footp-db-explorer/lists"}