Skip to content

tama774/streamlit-fastapi-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastapi-streamlit-template

Version. 0.1.1

自分が使う、あるいは身内が使う Web アプリを作りたい時のテンプレート。

frontend は streamlit で backend は fastapi。分けてるのは真面目に作り直したくなった時のため。

目的

クソアプリをサクッと作りたい時。特にデータビューア的なの。全部 Python。

ネットに公開する場合は Cloudflare Tunnel 通す。

機能

簡易的なログイン

簡易的なログインはやる。Cloudflare の Private でもいいけど面倒くさいので。

サインアップはない。

構成

graph TD
    subgraph "Docker Containers"
        web[Frontend: Streamlit]
        api[Backend: FastAPI]
    end

    subgraph "Host Machine"
        C[Host Port 14124 Backend]
        D[Host Port 14024 Frontend]
    end

    web -->|API Request: backend:8000| api
    api -->|Port 8000| C(Host Port 14124 Backend)
    web -->|Port 8501| D(Host Port 14024 Frontend)
Loading

使い方

docker-compose を見直す

  • ホストマシンの公開するポート番号を確認する
    • 14124 と 14024 を使う

インストール

初回のみ

make install

起動

make up

停止

make down

クリーンアップ

make clean

streamlit-fastapi-template

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published