1.2 KiB
1.2 KiB
Dune API
Node.js API for Dune: Awakening Questlog data. It imports items, skills, recipes, placeables, and NPCs in English and German into MongoDB, then exposes them through REST endpoints and Swagger UI.
Quick Start
npm install
npm run import:smoke
npm start
Open Swagger UI at http://localhost:3030/docs.
Docker
docker compose up --build
The API listens on http://localhost:8030 by default when run through Docker Compose. Set API_HOST_PORT=3031 if your machine needs the alternate host port.
Import All Data
npm run import
You can also call the script directly with filters:
node scripts/import.js --datasets=items,skills --languages=en,de --max-pages=1
or call POST /api/import from Swagger UI with an empty JSON body:
{}
The importer pulls every page for all configured datasets and both supported languages by default.
Endpoints
GET /healthGET /docsGET /openapi.jsonGET /api/{dataset}GET /api/{dataset}/{id}GET /api/search?q=...POST /api/importGET /api/import/status
Datasets: items, skills, recipes, placeables, npcs.