# stock-predict **Repository Path**: Chapoii/stock-predict ## Basic Information - **Project Name**: stock-predict - **Description**: 股票预测WEB应用 - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2023-12-29 - **Last Updated**: 2024-01-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: Python, Web, stock ## README # 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