基於 SpringBoot + Ng-Alain 先後端分離的實現,能夠做爲新手入門項目,也能夠做爲小項目的基礎框架去擴展。目前 Snails 系統框架已支持基本的後臺功能,基於簡單、實用設計,而且已支持 Docker 進行項目部署。html
GitHub 地址:https://gitee.com/kuzan/snails前端
碼雲 地址:https://github.com/danxiaogui/snailsjava
Mysql 配置文件地址:application.ymlgit
IP | Port | Username | Password | Database |
---|---|---|---|---|
localhost | 3306 | root | 123456 | snails |
# 一、打包 snails-web 鏡像 git clone https://gitee.com/kuzan/snails-web.git cd snails-web docker build -t snails-web . # 二、打包 snails-api 鏡像 git clone https://gitee.com/kuzan/snails-api.git cd snails-api mvn package docker:build # 三、啓動 docker 鏡像 # 查看 docker 鏡像 docker images | grep snails # 運行 snails-web docker run -d --name snails-web -p 4200:4200 snails-web # 運行 snails-api docker run -d --name snails-api -p 8081:8081 -t snails-api # 查看運行中的 docker 實例 docker ps -a | grep snails # 四、瀏覽器訪問 localhost:4200 便可
# 一、運行 snails-web git clone https://gitee.com/kuzan/snails-web.git cd snails-web yarn npm run start # 二、運行 snails-api git clone https://gitee.com/kuzan/snails-api.git cd snails-api mvn package java -jar target/snails-0.1.jar # 三、瀏覽器訪問 localhost:4200 便可
MIT程序員