Version 1
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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
|
||||
Reference in New Issue
Block a user