Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 670 Bytes

File metadata and controls

33 lines (22 loc) · 670 Bytes

python-fastapi-sample

Fastapi演習サンプル

  1. 仮想環境を用意します。
python -m venv [仮想環境名]
  1. 仮想環境のフォルダーにリポジトリをcloneします。
git clone https://github.com/jsn-developer/python-fastapi-sample.git
  1. 仮想環境に入ります。
[仮想環境名]\Script\activate.bat
  1. cloneしたpython-fastapi-sample配下のrequirements.txtを利用して、パッケージを導入する。
pip install -r python-fastapi-sample\requirements.txt
  1. サンプルを実行する。
uvicorn python-fastapi-sample.main:app --reload