This client makes REST API requests using the CLI.
-
Run
docker-compose up
to spin up Postgres service for the API service -
Create an
.env
file in root directory by cloning the.env.test
file. -
You can modify .env but it is compatible with postgres service being spun. If modified,
docker-compose.yaml
must be modified to correspond. -
cd
intointernal/migrations
and rungoose postgres "postgresql://postgres:postgres@localhost:5432/gamedev?sslmode=disable" up
to make migrations. -
Build the go project with
go build -o gamedev cmd/main.go
in root and run--help
to see subcommands, you can check out CLI documentation
- Tests can be run in root with
go test ./...
- You can jump right into the API Documentation.
-
Filters are done based on one field.
-
Updates are done based only on username and game title.
-
No authentication provided.