Files
syketagCompliance/Makefile
T
2026-05-12 15:40:22 -06:00

37 lines
920 B
Makefile

# Makefile for building and running LogJensticks services
.PHONY: build run run-server run-db run-caddy run-frontend run-test docker-build ls
ls:
@echo "build - Compile Go binary to bin/server"
@echo "run - Build Docker images and start all containers"
@echo "run-server - Build Docker images and start only the Go server"
@echo "run-db - Start only the MongoDB container"
@echo "run-caddy - Start only the Caddy container"
@echo "run-frontend - Start the Vite dev server (local, no Docker)"
@echo "run-test - Run all Go tests"
build:
go build -o bin/server ./cmd/server
run: docker-build
docker compose up
run-server: docker-build
docker compose up server
run-db:
docker compose up db
run-caddy:
docker compose up caddy
run-frontend:
cd frontend && npm run dev
run-test:
go test ./...
docker-build:
docker compose build