diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -1,8 +1,9 @@ BINARY_NAME=cafe BUILD_PATH=bin/$(BINARY_NAME) MAIN_PATH=$(BINARY_NAME)/main.go +COMPOSE_DEV=toolchain/docker-compose.dev.yml -.PHONY: setup clean tidy build run dev test all +.PHONY: setup clean tidy build run dev test postgres stop reset all setup: @echo "Setting up environment..." @@ -39,6 +40,18 @@ test: @echo "Running tests..." @go test -v ./... || true +postgres: + @echo "Starting database..." + @docker-compose -f $(COMPOSE_DEV) up -d + +stop: + @echo "Stopping database..." + @docker-compose -f $(COMPOSE_DEV) down + +reset: + @echo "Resetting database..." + @./scripts/reset.db.sh + all: setup clean build run .SILENT:
\ No newline at end of file |
