# hamster **Repository Path**: coolops/hamster ## Basic Information - **Project Name**: hamster - **Description**: No description available - **Primary Language**: Go - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-09 - **Last Updated**: 2021-11-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # hamster axure 产品原型分享网站 ## 产品介绍 (product introduction) hamster 是一个简单的用于托管静态网站的工具, 目前我主要用来托管`axure`的原型文件 hamster is a tool for serving static sites, especially for `axure` generated sites ## Build(如何构建) ```bash export CGO_ENABLED=1 export GOOS=linux export GOARCH=amd64 go build . ``` - 复制可执行文件 - 复制conf.yaml 和打包成的可执行文件到服务器上 - 创建 uploadDir的目录 - 创建path对应的目录 - 加可执行权限 `chmod a+x hamster` - 运行 `./hamster` ## 示例:Demo ![image](https://user-images.githubusercontent.com/7270177/66741200-89c74d80-eea7-11e9-948d-7de55da71129.png) ### 如何使用 ![usage](https://user-images.githubusercontent.com/7270177/66741154-63a1ad80-eea7-11e9-8423-23fbea644bcd.gif) ## conf.yaml 配置文件详解 ```yaml web: path: ./products # 放静态文件的目录 uploadDir: ./uploads # 上传到服务器的目录 server: port: :8080 # 监听的端口, listen port ```