-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gorm and postgres test conteiner initial path
- Loading branch information
1 parent
1334f09
commit 37a8c09
Showing
8 changed files
with
446 additions
and
478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
frontend/.idea | ||
backend/.idea | ||
|
||
/**/.idea | ||
/**/.env |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Include all env file and extract as environment valuables entire this Makefile. | ||
include .env | ||
.EXPORT_ALL_VARIABLES: | ||
|
||
RED=`tput setaf 1` | ||
GREEN=`tput setaf 2` | ||
WHITE=`tput setaf 7` | ||
RESET=`tput sgr0` | ||
|
||
ORG_PATH := ${CURDIR} | ||
|
||
ENVS = \ | ||
export TF_VAR_HOME=$(HOME); | ||
|
||
.PHONY: gen | ||
gen: ## Generate GraphQL implementations | ||
printf "${GREEN} Clean up files\n\n"; \ | ||
cd ./graph; rm -fR generated.go resolver.go schema.resolvers.go model; cd ${ORG_PATH} ; \ | ||
printf "${GREEN} Update gqlgen\n\n"; \ | ||
go get github.com/99designs/gqlgen@latest; cd ${ORG_PATH} ; \ | ||
printf "${GREEN} Generating GraphQL related sources\n\n"; \ | ||
go get github.com/99designs/gqlgen@latest; cd ${ORG_PATH} ; \ | ||
go run github.com/99designs/gqlgen generate; cd ${ORG_PATH}; \ | ||
printf "${GREEN}Done\n"; \ | ||
|
||
.PHONY: fmt | ||
fmt: ## Format code | ||
go fmt ./...; \ | ||
printf "${GREEN} Code formatted.\n\n"; \ | ||
|
||
.PHONY: test | ||
test: ## Run tests | ||
printf "${GREEN}Run all tests\n\n"; \ | ||
${ENV} go test -v ./...; | ||
printf "${GREEN}Done\n"; \ | ||
|
||
.PHONY: help | ||
help: ## Display this help screen | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sed s/Makefile:// | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' |
Oops, something went wrong.