add
This commit is contained in:
27
trading_assistant_api/Makefile
Normal file
27
trading_assistant_api/Makefile
Normal file
@@ -0,0 +1,27 @@
|
||||
SHELL := /bin/sh
|
||||
|
||||
.PHONY: bootstrap tidy-all run-user run-country test-all
|
||||
|
||||
bootstrap:
|
||||
@echo "Initializing go.work..."
|
||||
@go work init || true
|
||||
@go work use ./common || true
|
||||
@go work use ./services/user || true
|
||||
@go work use ./services/country || true
|
||||
|
||||
tidy-all:
|
||||
@echo "Running go mod tidy for all modules..."
|
||||
@cd common && go mod tidy
|
||||
@cd services/user && go mod tidy
|
||||
@cd services/country && go mod tidy
|
||||
|
||||
run-user:
|
||||
@echo "Starting user service..."
|
||||
@cd services/user && PORT=8080 go run .
|
||||
|
||||
run-country:
|
||||
@echo "Starting country service..."
|
||||
@cd services/country && PORT=8081 go run .
|
||||
|
||||
test-all:
|
||||
@echo "No tests yet"
|
||||
Reference in New Issue
Block a user