https://github.com/rongfengliang/statik-web-demo
statik-web-demo
https://github.com/rongfengliang/statik-web-demo
golang statik web-resources
Last synced: about 1 month ago
JSON representation
statik-web-demo
- Host: GitHub
- URL: https://github.com/rongfengliang/statik-web-demo
- Owner: rongfengliang
- Created: 2018-10-23T13:35:49.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-23T14:14:13.000Z (almost 8 years ago)
- Last Synced: 2025-10-07T19:56:59.724Z (10 months ago)
- Topics: golang, statik, web-resources
- Language: Dockerfile
- Size: 3.16 MB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# statik Embed static resource for golang application
## How to Run(local)
* install statik
```code
go get github.com/rakyll/statik
```
* generate code
```code
statik -src=./ui
or:
go generate
```
* build
```code
go build -o webui .
```
## With docker
* build
```code
docker-compose build
```
* run
```code
dokcer-compose up -d
```