Skip to content

LogoRecognition/AppServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AppServer

How to install

# 安装虚拟环境virtualenv
pip install virtualenv
# 克隆仓库
git clone https://github.com/LogoRecognition/AppServer
# 切换到项目源码目录
cd AppServer/main-server
# 新建虚拟环境并指定Python版本
virtualenv venv -p python3
# 激活虚拟环境
source venv/bin/activate
# 安装第三方模块
pip install -r requirements.txt

How to run

运行项目前,需要在main-server目录下新建instance目录,并在instance目录下新建config.py文件,在config.py中添加项目的私密配置,例如:

DB_USERNAME = 'username'      	# MySQL用户名
DB_PASSWORD = 'password'      	# MySQL密码
DB_NAME = 'logo'             	# 数据库名称
SECRET_KEY = 'HELLO'            # 会话秘钥
IMAGE_FOLDER = '../images/'		# 图片目录

然后切换至main-server目录下:

# 自动添加数据
python scripts/add_brands.py
python scripts/add_classic_goods.py
# 运行服务器程序
python run.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages