Remove old Go fetch-pokeapi tool, update README for import-pokedb (#13)
All checks were successful
CI / backend-lint (push) Successful in 7s
CI / frontend-lint (push) Successful in 29s

The Go tool in tools/fetch-pokeapi/ has been fully replaced by the
Python import-pokedb tool. Removes all Go source files, updates the
README seed regeneration docs, and cleans up the .gitignore entry.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Co-authored-by: Julian Tabel <julian.tabel@synvert.com>
Reviewed-on: TheFurya/nuzlocke-tracker#13
This commit was merged in pull request #13.
This commit is contained in:
2026-02-11 13:55:38 +01:00
parent f42cee7f7a
commit 63bb3a0394
12 changed files with 24 additions and 1611 deletions

View File

@@ -47,30 +47,23 @@ This loads game data, Pokemon, routes, and encounter tables for FireRed, LeafGre
### Regenerating Seed Data
The seed JSON files don't normally need regenerating. If you need to update them (e.g., to pull in new PokeAPI data), run the Go fetch tool against a local PokeAPI instance:
The seed JSON files don't normally need regenerating. If you need to update them (e.g., to pull in new game data), run the import tool from the repo root:
1. Start a local PokeAPI (e.g., using [pokeapi/pokeapi](https://github.com/PokeAPI/pokeapi)):
```bash
python -m import_pokedb
```
```bash
# In a separate directory
git clone https://github.com/PokeAPI/pokeapi.git && cd pokeapi
docker compose up
```
It auto-downloads [PokeDB](https://pokedb.org) data on the first run. Options:
This serves the API at `http://localhost:8000/api/v2` by default.
```bash
# Generate data for a specific game only
python -m import_pokedb --game firered
2. Run the fetch tool (requires Go 1.22+):
# Use a custom PokeDB data directory
python -m import_pokedb --pokedb-dir ~/my-pokedb-data/
```bash
cd tools/fetch-pokeapi && go run .
```
# Write output to a different directory
python -m import_pokedb --output /tmp/seed-output/
```
Set `POKEAPI_URL` if your instance is at a different address:
```bash
POKEAPI_URL=http://localhost:9000/api/v2 go run .
```
Use `--clear-cache` to discard cached API responses and re-fetch everything.
3. Review and commit the updated JSON files in `backend/src/app/seeds/data/`.
Review and commit the updated JSON files in `backend/src/app/seeds/data/`.