init project

This commit is contained in:
2025-01-31 11:04:28 +07:00
parent 562c727ed6
commit 66c9f17dde
21 changed files with 725 additions and 57 deletions
+6 -12
View File
@@ -14,13 +14,7 @@ run:
@go run cmd/api/main.go
# Create DB container
docker-run:
@if docker compose up --build 2>/dev/null; then \
: ; \
else \
echo "Falling back to Docker Compose V1"; \
docker-compose up --build; \
fi
@docker-compose up --build
# Shutdown DB container
docker-down:
@if docker compose down 2>/dev/null; then \
@@ -28,11 +22,6 @@ docker-down:
else \
echo "Falling back to Docker Compose V1"; \
docker-compose down; \
fi
# Test the application
test:
@echo "Testing..."
@go test ./... -v
# Integrations Tests for the application
itest:
@@ -41,6 +30,11 @@ itest:
# Clean the binary
clean:
fi
# Test the application
test:
@echo "Testing..."
@echo "Cleaning..."
@rm -f main