-
Notifications
You must be signed in to change notification settings - Fork 115
How to install project?
非法操作 edited this page Sep 1, 2022
·
1 revision
First, Clone and Install dependence
git clone https://github.com/hjlarry/flask-shop.git
cd flask-shop
python3 -m venv .venv
# on windows, you should run .venv\Scripts\activate
source .venv/bin/activate
pip3 install -r requirements.txt
Second, Init db and run
# create a .flaskenv or modify the flaskshop/setting.py
flask createdb
# create the fake data and admin user for experience
flask seed
flask run
First, Build image and run in background
docker-compose up -d
Second, enter container and add fake data
docker-compose exec web sh
flask createdb
flask seed