This project offers an API where you can get all the info about the Zombicide Black Plague spawn cards.
The frontend project is here
- API use
- Requirements
- Installation
- Docker image repositories
- How to use the Docker images
- Pull simple image
- Using docker-compose
- License
This API uses GraphQL. API documentation
Get the card 39 from the Zombicide Black Plague spawn pile:
query {
getCard(number: 39) {
number
type
... on SziCard {
levels {
red {
zombie
amount
}
orange {
zombie
amount
}
yellow {
zombie
amount
}
blue {
zombie
amount
}
}
}
... on ActivationCard {
levels {
red {
zombie
}
orange {
zombie
}
yellow {
zombie
}
blue {
zombie
}
}
}
}
}
Get all cards of type Necromancer:
query {
fetchAllCardsByType(type: "Necromancer") {
items {
number
}
}
}
You can set-up some environment variables:
Optional:
- PORT: The server port
- SERVER_NAME: The server name. By default, the field name from package.json is used
For the develop environment, you can add a nodemon.json file which is not tracked by GIT. More info here
Example (nodemon.json):
{
"env": {
"PORT": "8080",
"SERVER_NAME": "server_name"
}
}
There are some official repositories.
docker pull gmdcwork/zombicide-spawn-backend:[version]
# Please set the correct variable values
docker run --name zombicide-spawn-backend-instance \
-d zombicide-spawn-backend:[version]
yarn
Start the application in production mode:
yarn start:prod
The command yarn start
is similar but it does not set the environment variable NODE_ENV
.
You can use an official docker image Docker image repositories:
yarn build
Now you could run a container. Example explained
There are two repositories:
Author: Gabriel MDC