nonjosh / dnd4e-data-html

DnD4e data archieved from http://funin.space/

Home Page:http://data.dnd.nonjosh.site

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DnD4e data (html and PHP)

Docker Image CI

How to use

build and create GUI container for searching

# build and run the docker image
docker build . -t nonjosh/dnd4e-data-html:1.0.0a
docker run -d --name dnd4e-data-html -p 1080:80 --restart always nonjosh/dnd4e-data-html:1.0.0a


# or if you use Docker Compose
docker-compose up -d

# or if you use Kubernetes
docker build . -t nonjosh/dnd4e-data-html
kubectl apply -k k8s/base

stop and remove container

# remove container and image
docker rm -f dnd4e-data-html
docker image rm nonjosh/dnd4e-data-html

# or if you use Docker Compose
docker-compose down

# or if you use Kubernetes
kubectl delete -k k8s/base
docker image rm nonjosh/dnd4e-data-html

API

Example call: http://localhost:1080/?search=avenger&folders[]=class&api=true

Response:

{
  "request": {
    "search": "avenger",
    "folders": [
      "class"
    ],
    "api": "true"
  },
  "data": {
    "class": [
      "/compendium/class/Invoker.html",
      "/compendium/class/Paladin.html",
      "/compendium/class/Hybrid-Wizard.html",
      "/compendium/class/Hybrid-Avenger.html",
      "/compendium/class/Hybrid-Monk.html",
      "/compendium/class/Hybrid-Shaman.html",
      "/compendium/class/Hybrid-Druid.html",
      "/compendium/class/Avenger.html"
    ]
  }
}

Origin

About

DnD4e data archieved from http://funin.space/

http://data.dnd.nonjosh.site

License:MIT License


Languages

Language:HTML 99.3%Language:CSS 0.7%Language:PHP 0.0%Language:Shell 0.0%Language:Makefile 0.0%Language:Dockerfile 0.0%