iris-web is a web template based on vue3 and iris in Go. It does not require packaging of front-end static files, HTML directly uses Vue3 axios、element-plus ui, Embed into go binary file.
.
├── cmd
│ ├── root.go
│ └── version.go
├── config
│ └── info.go
├── docker-compose.yml
├── Dockerfile
├── docs
├── go.mod
├── go.sum
├── internal
│ ├── handler
│ │ └── handler.go
│ ├── logger
│ │ └── logger.go
│ ├── logic
│ └── router
│ └── router.go
├── LICENSE
├── main.go
├── Makefile
├── pkg
│ └── util
│ └── response.go
├── README.md
├── README-zh.md
├── scripts
│ └── docker-entrypoint.sh
└── web
├── static
│ ├── favicon.ico
│ └── index.html
└── static.go
Requires Go version 1.22.0 or above.
git clone https://github.com/stylite1024/iris-web.git
cd iris-web
go mod tidy
go run main.go
Then visit 0.0.0.0:8080
in your browser to see the response!
# build binary file
make build
# build docker image
make build-image
Found an error? Is there something meaningless? Initiate an issue to me, thank you!
Element Plus is open source software licensed as MIT
Copyright (c) 2022 stylite1024