Remove old Go fetch-pokeapi tool, update README for import-pokedb (#13)
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:
35
README.md
35
README.md
@@ -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/`.
|
||||
Reference in New Issue
Block a user