stylite1024 / golang-web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iris-web

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.

Project Layout

.
├── 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

Getting started

Prerequisites

Requires Go version 1.22.0 or above.

Develop

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!

Deploy

# build binary file
make build

# build docker image
make build-image

Thanks

Issues

Found an error? Is there something meaningless? Initiate an issue to me, thank you!

LICENSE

Element Plus is open source software licensed as MIT

Copyright (c) 2022 stylite1024

About

License:MIT License


Languages

Language:Go 52.8%Language:Makefile 21.8%Language:HTML 17.0%Language:Dockerfile 6.6%Language:Shell 1.8%