5 Star 1 Fork 2

Chapoii / stock-predict

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 987 Bytes
一键复制 编辑 原始数据 按行查看 历史
Chapoii 提交于 2024-01-13 15:22 . 增加自动化测试与docker部署

stock-predict

介绍

股票预测WEB应用

所需环境

  1. python 版本3.11
  2. node.js
  3. 数据库 postgresql
  4. docker
  5. allure

使用说明

  • 前端

    1. cd front
    2. npm install
    3. npm run dev
  • 后端

    1. cd stock_predict
    2. ./setup.bat
    3. ./run.bat
  • 数据库

    1. 新建stock数据库
    2. cd stock_predict
    3. python ./manage.py migrate
  • 模型训练

    1. 预训练模型下载: https://drive.google.com/file/d/1llrxRKj0J0af5cVx4gmygYy3Z3JeAhJe/view?usp=sharing
  • 自动化测试

    1. cd test
    2. py.test full_test.py --alluredir=test_report --clean-alluredir
    3. allure generate test_report --clean
    4. allure open allure-report
  • docker部署

    1. cd front
    2. docker build -f ./Docker/Dockerfile -t "registry.cn-stock-web:prod" . --no-cache
    3. docker run -d --name web -p 80:80 --restart=always registry.cn-stock-web:prod

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request
Python
1
https://gitee.com/Chapoii/stock-predict.git
git@gitee.com:Chapoii/stock-predict.git
Chapoii
stock-predict
stock-predict
master

搜索帮助