App for fetching and uploading images to cloud bucket storage

This commit is contained in:
2022-12-10 15:27:24 +01:00
commit b56c3d1e29
18 changed files with 749 additions and 0 deletions

26
Makefile Normal file
View File

@@ -0,0 +1,26 @@
.PHONY: build install server
PROJECT_NAME=$(shell basename $(CURDIR))
## build: build the application
build:
export GO111MODULE="on"; \
go mod download; \
go mod vendor; \
CGO_ENABLED=0 go build -a -ldflags '-s' -installsuffix cgo -o main cmd/server/main.go
## install: fetches go modules
install:
export GO111MODULE="on"; \
go mod tidy; \
go mod download \
## server: runs the server with -race
server:
export GO111MODULE="on"; \
go run cmd/server/main.go
## modd: Monitors the directory, and recompiles your app every time a file changes. Also runs tests.
## (To install modd, run: go get github.com/cortesi/modd/cmd/modd)
modd:
modd