An open API service indexing awesome lists of open source software.

https://github.com/zhouboyi1998/note-beego


https://github.com/zhouboyi1998/note-beego

beego go-mongodb-driver

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

📔 note-beego











### 📖 Language

[简体中文](./README.md) | 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-beego .
```

#### Docker Run

```
docker run -d -p 18097:18097 --name note-beego note-beego
```

### 📜 Licence

[MIT License](https://opensource.org/licenses/MIT) Copyright (c) 2022 周博义