Files
shorebird-server/Makefile
T
Tony 3bb4ab494e feat: implement database and storage abstractions
- Added `internal/db/store.go` to define the Store interface for database operations, including user, organization, app, channel, release, patch, and artifact management.
- Introduced `internal/models/models.go` changes to reflect updated organization and artifact response structures.
- Created `internal/storage/factory.go`, `local.go`, and `s3.go` to implement storage backends for local filesystem and S3-compatible services.
- Removed deprecated `internal/storage/storage.go` and refactored storage interface into `internal/storage/store.go`.
- Updated frontend JavaScript in `web/js/app.js` to display server health information, including storage and database backend details.
2026-06-12 08:45:01 +08:00

28 lines
496 B
Makefile

.PHONY: run build test docker-up docker-down tidy fmt
# Default: build and run with zero dependencies (SQLite + local storage)
all: build run
build:
go build -o bin/shorebird-server ./cmd/server
run:
go run ./cmd/server
test:
go test ./... -v
# Docker with full stack (PostgreSQL + MinIO)
# Uses profiles so docker compose up (no args) does nothing.
docker-up:
docker compose --profile full up -d
docker-down:
docker compose --profile full down
tidy:
go mod tidy
fmt:
go fmt ./...