- .NET 8.0 SDK
- Docker
- Python 3 (only needed for
export_data.py) master.mdbgame data files:- Global version: place in
Global/master.mdb - JP version: place in
JP/master.mdb
- Global version: place in
The API requires a MariaDB instance populated with data from master.mdb.
Place the Global master.mdb in the Global/ folder, then:
docker compose up -dMonitor import progress:
docker logs -f umamusume-db-loaderPlace the JP master.mdb in the JP/ folder, then:
docker compose -f docker-compose-jp.yml up -dMonitor import progress:
docker logs -f umamusume-db-loader-jpNote: Both databases can run simultaneously on different ports.
To reset with a new master.mdb:
# Global
docker compose down -v
docker compose up -d
# JP
docker compose -f docker-compose-jp.yml down -v
docker compose -f docker-compose-jp.yml up -dIf you see
Host '172.x.x.x' is not allowed to connect to this MariaDB server, your DB volume was initialized with old grants. Run the reset commands above so MariaDB recreates users/database from compose env vars.
Open UmaMusumeAPI/Properties/launchSettings.json and update the MARIA_CONNECTION_STRING for the profile you want to use:
"MARIA_CONNECTION_STRING": "user id=root;password=yourpassword;host=localhost;database=umamusume;character set=utf8mb4"| Field | Value |
|---|---|
user id |
MariaDB username (root by default) |
password |
Password set in docker-compose.yml |
host |
localhost or the IP of the DB machine |
database |
umamusume |
If connecting to a remote database, replace host=localhost with the remote IP (e.g. host=192.168.1.101).
dotnet run --project UmaMusumeAPI --launch-profile "UmaMusumeAPI"dotnet run --project UmaMusumeAPI --launch-profile "UmaMusumeAPI-JP"The API will be available at:
- HTTP: http://localhost:5000
- HTTPS: https://localhost:5001
- Swagger UI: https://localhost:5001/index.html
python export_data.pyExports to latest-data/ folder.
python export_data.py --jpExports to latest-data-jp/ folder.
The script starts the API, fetches all Terumi endpoints, saves the results as JSON files, and shuts down automatically.
Exported files:
TerumiFactorData.jsonTerumiSimpleSkillData.jsonTerumiCharacterData.jsonTerumiSupportCardData.jsonTerumiRaceData.jsonSuccessionRelationMember.jsonSuccessionRelation.json