Skip to content

Latest commit

 

History

History
67 lines (46 loc) · 1.27 KB

README.en.md

File metadata and controls

67 lines (46 loc) · 1.27 KB

📔 note-gin

📖 Language

简体中文 | English

⌛ Start

Project configuration

  • 1:Configure Global GOPATH & Project GOPATH
  • 2:Configure Environment
    • GOPROXY=https://goproxy.cn,direct
    • GOFLAGS=-buildvcs=false
    • ENVCONFIG=dev

Install dependencies

go mod tidy

compile to an executable file

go build main.go

🐳 Docker

Compile the Golang code to Linux executable file

set GOOS=linux

set GOARCH=amd64

go build main.go

Docker Build

docker build -t note-gin .

Docker Run

docker run -d -p 18091:18091 --name note-gin note-gin

📜 Licence

MIT License Copyright (c) 2022 周博义