# 安装依赖
npm install 或 yarn --registry=https://registry.npmmirror.com
npm install --registry=https://registry.npmmirror.com
# 启动服务
npm run dev 或 yarn dev
# 安装依赖环境, 建议使用aconda, python版本推荐3.11
pip3 install -r requirements.txt
# 配置环境
在.env.dev(开发环境)文件中配置开发环境的数据库和redis
# 运行sql文件
1.使用命令或数据库连接工具运行sql文件夹下的leafdetective,或使用SQL的Docker
# 运行后端
python3 app.py --env=dev
# 默认账号密码
账号:admin
密码:admin123
# 浏览器访问
地址:http://localhost:80
# 构建测试环境
npm run build:stage 或 yarn build:stage
# 构建生产环境
npm run build:prod 或 yarn build:prod
docker build -t fastvue:latest .
# 配置环境
在.env.prod文件中配置生产环境的数据库和redis
docker build -t fastapiback:latest .
docker build -t fastsql:latest .
# FastAPI backend
https://hub.docker.com/repository/docker/maplexx/fastapiback/general
# FastVue
https://hub.docker.com/repository/docker/maplexx/fastvue/general
# FastSQL
https://hub.docker.com/repository/docker/maplexx/fastsql/general