This part contains a cli command tool to test out some of the functionality of the game. It was quickly built to provide a simple interface to test out some of the game functionalities.
go run ./cmd/client/main.go
- load .env file in the root directory of the project. An example is provided at
.env.example
- run
docker-compose up -d
- open http://localhost:8080
- download go-migrate
- run the below command
EXPORT DATABASE_URL=postgres://user:pass@host:port/db?sslmode=false # your database url
make migrateup # to migrate up
make migratedown # to migrate down
- When connecting using docker, the POSTGRES_HOST is set to
pg-dev