Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 811 Bytes

File metadata and controls

61 lines (43 loc) · 811 Bytes

Scripts

Install dependencies:

go mod download
cd e2e && npm install && npx playwright install chromium

Upkeep dependencies:

go mod tidy

Run project:

go run ./src/application.go

Run unit tests:

go test ./...

Run E2E tests (Playwright auto-starts the binary; build it first):

CGO_ENABLED=0 go build -o ./bin/httphq ./src
cd e2e && npx playwright test

View test coverage:

go test ./... -coverprofile=coverage.out
go tool cover -html=coverage.out

Format project:

go fmt ./src && npx prettier --write .

Build and run binary:

CGO_ENABLED=0 go build -o ./bin/httphq ./src
./bin/httphq

Build and run container:

docker build . -t httphq
docker run -dp 8080:8080 httphq
docker container ls -s