2
0
Files
Royal-Pop-Accessory/Commands/Local/Dev/backend.just
T
2026-06-23 18:50:37 +01:00

19 lines
505 B
Plaintext

project_root := justfile_directory()
backend_dir := project_root + "/Backend"
# Format backend Go source files.
fmt:
cd '{{backend_dir}}' && gofmt -w ./cmd ./internal
# Run backend test suite.
test:
cd '{{backend_dir}}' && go test ./...
# Open a psql shell into the local Royal Pop database container.
psql:
docker compose -f '{{project_root}}/Docker/docker-compose.local.dev.yaml' exec postgres psql -U royalpop -d royalpop
# Run backend module cleanup.
tidy:
cd '{{backend_dir}}' && go mod tidy