diff --git a/README.md b/README.md index 594adb4..19c7354 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,21 @@ Next, you can access sonic through the browser. The URL of the admin console is http://ip:port/admin The default port is 8080. + +## 🔨️ Build +**1. Pull Project** +```bash +git clone --recursive --depth 1 https://github.com/go-sonic/sonic +``` +**2. Run** +```bash +cd sonic +go run main.go +``` +> To compile this package on Windows, you must have the gcc compiler installed,for example the TDM-GCC Toolchain can be found ([here](https://jmeubank.github.io/tdm-gcc/)). + +🚀 Done! Your project is now compiled and ready to use. + ## Docker See: https://hub.docker.com/r/gosonic/sonic diff --git a/doc/README_ZH.md b/doc/README_ZH.md index 94d215a..9d116b6 100644 --- a/doc/README_ZH.md +++ b/doc/README_ZH.md @@ -57,6 +57,20 @@ cd sonic 后台管理路径是 http://ip:port/admin +## 🔨️ 构建 +**1. 拉取项目** +```bash +git clone --recursive --depth 1 https://github.com/go-sonic/sonic +``` +**2. 运行** +```bash +cd sonic +go run main.go +``` +> 如果你在windows上构建该项目,请确保你已经正确安装了gcc编译器,比如,你可以在[这里](https://jmeubank.github.io/tdm-gcc/)找到一个TDM版本的gcc编译器。 + +🚀 完成! 你的项目现在已经运行起来了。 + ## Docker See: https://hub.docker.com/r/gosonic/sonic