Skip to main content

How to populate the Item API

Populating the database is a manual process which requires you to use the cli on a running service.

1. Launch the Item API

Run docker-compose up -d item-api

2. Import item classes

Import the item classes, so they can be joined on items

docker-compose exec item-api ./bin/nest cli import:item-classes <game-type>

Where <game-type> can be retail, classic or classic-progression (see libs/types/warcraft/src/Enum/GameType.ts)

3. Import items

Then import the items with

docker-compose exec item-api ./bin/nest cli import:items <game-type>

If no errors are thrown, your item-api should be good to go.