This repository provides a web-based interface and public API for exploring KBO data. Built with Flask, it supports both interactive visualizations and programmatic access to collected and processed data from the KBO Data Pipeline.
- Flask-based web service and REST API for KBO data
- Interactive web visualizations (charts, tables)
- Public API endpoints for programmatic access
- Supports both local and Docker-based deployment
- Environment variable configuration via
.envfile
-
Clone the repository
git clone https://github.com/kbo-data-portal/api-server.git cd api-server -
Install dependencies
pip install -r requirements.txt
flask runThen, visit http://localhost:5000/ in your browser.
docker-compose up --buildThen, visit http://localhost/ in your browser.
Create a .env file in the project root to configure environment variables such as database credentials:
DB_USER=<your_db_user>
DB_PASSWORD=<your_db_password>
DB_HOST=<your_db_host>
DB_PORT=<your_db_port>
DB_NAME=<your_db_name>This file is automatically used by Docker Compose if configured properly.
fetcher/— Handles database queries and data processing.routes/— Defines API endpoints and web routes./web— Web interface (charts, tables, visualizations)/chatbot— Kakao chatbot APIs (game schedule, predictions)
static/— Static assets (CSS, JS, images)templates/— HTML templates for rendering web pages.
This project is licensed under the MIT License. See the LICENSE file for details.