esyeol / fast_api-prac

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

recsys fast api practice


install

$ pip install fastapi # fast api module
$ pip install "uvicorn[standard]" # asgi module

Run

$ cd src
$ uvicorn main:app --reload 

docs

serverhost/docs  #swagger docs
serverhost/redoc # auto docs 

docker build

$ docker build -t fast-api .

Container Execution

$ docker run --rm -p 8080:80 fast-api #contianer stop -> container 제거,  8080 포워딩

Docker compose start

$ docker-compose up
$ docker-compose up --build --force-recreate # rebuild

Requirements

fastapi==0.95.1
SQLAlchemy==2.0.12
pydantic==1.10.7
boto3==1.25.124
gensim==4.3.1
jwt==1.3.1
decode==0.7.1

About


Languages

Language:Python 95.0%Language:Dockerfile 5.0%