Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 567 Bytes

README.md

File metadata and controls

26 lines (15 loc) · 567 Bytes

api

開發環境設定

  • pipenv shell: 啟動虛擬環境
  • pipenv sync: 同步 package
  • pipenv install -e .: 把 project 變成 package (主要是為了將 project 路徑新增到 pythonpath)
  • python genenv.py

run api server

  • docker build : docker-compose -f docker-compose.yml build

    up: docker-compose -f docker-compose.yml up -d

    down: docker-compose -f docker-compose.yml down

    docker url : http://127.0.0.1:9000/docs

  • non-docker

    pipenv run uvicorn api.main:app --reload --host 0.0.0.0

    url: http://127.0.0.1:8000/docs