app/
├── static
│ ├── css
│ │ ├── input.css
│ │ └── app966.css
│ ├──js
│ │ └── app966.js
│ └── images
├── templates
│ └── index.html
├── src/
│ └── error_img/ # 存放识别失败的图片,用于自训练
│ └── test/ # 演示效果
├── .env
├── app.py
├── auth.py
├── datebase.py
├── init_db.py
├── models.py
├── main.py
├── sendEmail.py
├── Dockerfile
├── README.md
├── requirements.txt
├── webpack.config.js
├── uwsgi.ini
└── package.json
└── tailwind.config.js
- 我当前项目在算法校验上与开源版本存在较大差异,其它无区别
# 克隆项目
git clone https://github.com/Superheroff/wjdrGiftcode.git
# 进入项目目录
cd wjdrGiftcode/app
# 安装依赖
pip install -r requirements.txt
# 安装前端依赖
npm install
# 初始化数据库
python init_db.py
# 构建前端项目
npm run build
npm run webpackbuild
- 编辑
.env 文件,填写数据库连接、Redis主机、Redis端口、Redis密码、发送邮箱地址、发送邮箱密码等信息。
# 构建Docker镜像
docker build -t wjdrcode:1.0 .
# 运行Docker容器
docker run -d -p 5201:5201 --name wjdr wjdrcode:1.0
Apache-2.0