CCC2021-NoobFighterReturnsの作品です.
メンバーは
- 伊地知翔也 STU-Idichi-Syoya
- パニアグアカルロス https://github.com/carlos-paniagua
- すやま ゆいこ https://github.com/mt-sumikko
- 福田信斗 https://github.com/fukudanobuto
- Masashi Hashiguchi https://github.com/MasashiHashiguchi
ここではユーザのホームディレクトリで実行することを前提にします。
cd ~
git clone https://github.com/STU-Idichi-Syoya/WasteReuseSystem/
cd ~/WasteReuseSystem/ # 各自DLしたディレクトリまで移動しよう。
python3 -m venv env
source env/bin/activate
pip3 install -r requrements.txt
flask db init
python3 -m venv env
env\Scripts\activate.bat ## うまくいかない場合、「開発を行うときにやる設定(毎回やること)」のwindowsの項を参照
pip3 install -r requrements.txt
flask db init
cd ~/WasteReuseSystem/
source env/bin/activate
env\Scripts\activate.bat ## コマンドプロンプトの場合
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force # 初回だけ実行
./env/Scripts/activate.ps1 # 毎回実行
export FLASK_APP=project
export FLASK_DEBUG=1
flask run
set FLASK_APP=project
set FLASK_DEBUG=1
flask run
deactivete
参考:https://flask-migrate.readthedocs.io/en/latest/
flask db migrate -m "msg..."
flask db upgrade