Dawid Wysokiński 7695ef2cb6 | ||
---|---|---|
dailyplayerstats | ||
dailytribestats | ||
ennoblement | ||
graphql | ||
langversion | ||
liveennoblement | ||
middleware | ||
player | ||
playerhistory | ||
server | ||
servermap | ||
serverstats | ||
tribe | ||
tribechange | ||
tribehistory | ||
utils | ||
village | ||
.gitignore | ||
Dockerfile | ||
LICENSE | ||
README.md | ||
dev.sh | ||
go.mod | ||
go.sum | ||
gqlgen_generate.sh | ||
main.go |
README.md
TWHelp API
Graphql API with TribalWars servers data.
Development
Required env variables to run this API (you can set them directly in your system or create .env.development file):
DB_USER=your_pgdb_user
DB_NAME=your_pgdb_name
DB_PORT=your_pgdb_port
DB_HOST=your_pgdb_host
DB_PASSWORD=your_pgdb_password
REDIS_HOST=your_redis_host
REDIS_PORT=your_redis_port
LIMIT_WHITELIST=127.0.0.1,::1
LOG_DB_QUERIES=[true|false]
Prerequisites
- Golang
- PostgreSQL database
- Configured cron
Installing
- Clone this repo.
- Navigate to the directory where you have cloned this repo.
- Set the required env variables directly on your system or create .env.development file.
- go run main.go