Skip to content

Latest commit

 

History

History
73 lines (50 loc) · 1.31 KB

README.en.md

File metadata and controls

73 lines (50 loc) · 1.31 KB

📔 note-iris

📖 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

Run

go run main.go

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-iris .

Docker Run

docker run -d -p 18098:18098 --name note-iris note-iris

📜 Licence

MIT License Copyright (c) 2022 周博义