-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c92798c
commit fbbddf2
Showing
3 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# 安装依赖库 | ||
sudo pip install -r requirements.txt | ||
|
||
# 启动 MySQL 服务,创建数据库 | ||
sudo service mysql start | ||
mysql -uroot -e 'CREATE SCHEMA jobplus CHARSET = UTF8' | ||
|
||
# 设置环境变量 | ||
export FLASK_APP=manage.py FLASK_DEBUG=1 | ||
|
||
# 数据表迁移,创建测试数据 | ||
flask db upgrade | ||
python3 -m scripts.generate_data | ||
|
||
echo 'ok' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
Faker==4.1.1 | ||
Flask==0.12.2 | ||
flask-login==0.4.1 | ||
Flask==1.1.2 | ||
flask-login==0.5.0 | ||
marshmallow==2.13.6 | ||
hiredis==0.2.0 | ||
redis==2.10.6 | ||
Flask-SQLAlchemy==2.2 | ||
Flask-SQLAlchemy==2.5.1 | ||
ipython==6.2.0 | ||
pylint==1.7.2 | ||
pytest==3.2.2 | ||
pytest-flask==0.10.0 | ||
flask-shell-ipython==0.3.0 | ||
flask-migrate==2.1.1 | ||
flask-wtf==0.14.2 | ||
mysqlclient==1.3.12 | ||
flask-shell-ipython==0.4.1 | ||
flask-migrate==3.1.0 | ||
flask-wtf==1.0.0 | ||
mysqlclient==2.1.0 | ||
email-validator==1.1.3 |