first commit
This commit is contained in:
17
Makefile
Normal file
17
Makefile
Normal file
@@ -0,0 +1,17 @@
|
||||
build:
|
||||
@go build -o bin/westone cmd/main.go
|
||||
|
||||
test:
|
||||
@go test -v ./...
|
||||
|
||||
run: build
|
||||
@./bin/westone
|
||||
|
||||
migration:
|
||||
@migrate create -ext sql -dir cmd/migrate/migrations $(filter-out $@,$(MAKECMDGOALS))
|
||||
|
||||
migrate-up:
|
||||
@go run cmd/migrate/main.go up
|
||||
|
||||
migrate-down:
|
||||
@go run cmd/migrate/main.go down
|
||||
Reference in New Issue
Block a user