diff --git a/.gitmessage.txt b/.gitmessage.txt new file mode 100644 index 0000000..4a140bd --- /dev/null +++ b/.gitmessage.txt @@ -0,0 +1,12 @@ +# type: feat | fix | docs | style | refactor | perf | test | chore +# scope: phần của project bị ảnh hưởng (auth, api, db...) +# summary: mô tả ngắn gọn (không viết hoa, không chấm câu) +# body: mô tả thêm (có thể bỏ qua) +# footer: liên kết issue hoặc cảnh báo BREAKING CHANGE +# ~/.gitmessage.txt + +(): + +[Body - mô tả chi tiết] + +[Footer - issue liên quan, breaking change,...] diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..082b194 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "makefile.configureOnOpen": false +} \ No newline at end of file diff --git a/Makefile b/Makefile index 601fc00..80fa641 100644 --- a/Makefile +++ b/Makefile @@ -54,12 +54,12 @@ all: ci-local build ## Run CI checks and build the application build: ## Build the Go application binary @echo ">>> Building application..." -mkdir "$(BUILD_DIR)" - $(GOBUILD) -o "$(BUILD_DIR)/$(BINARY_NAME).exe" "$(CMD_DIR)/main.go" + $(GOBUILD) -o "$(BUILD_DIR)/$(BINARY_NAME)" "$(CMD_DIR)/main.go" # --- Run --- run: build ## Build and run the application @echo ">>> Running application on port $(PORT)..." - @set PORT=$(PORT) && "$(BUILD_DIR)/$(BINARY_NAME).exe" + @set PORT=$(PORT) && "$(BUILD_DIR)/$(BINARY_NAME)" # --- Dev Mode --- dev: ## Run the application with hot-reload (requires installing air first) diff --git a/template/.gitmessage.txt b/template/.gitmessage.txt new file mode 100644 index 0000000..4a140bd --- /dev/null +++ b/template/.gitmessage.txt @@ -0,0 +1,12 @@ +# type: feat | fix | docs | style | refactor | perf | test | chore +# scope: phần của project bị ảnh hưởng (auth, api, db...) +# summary: mô tả ngắn gọn (không viết hoa, không chấm câu) +# body: mô tả thêm (có thể bỏ qua) +# footer: liên kết issue hoặc cảnh báo BREAKING CHANGE +# ~/.gitmessage.txt + +(): + +[Body - mô tả chi tiết] + +[Footer - issue liên quan, breaking change,...]