Skip to content

oukoutdam/yondabu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ヨンダブ

これは、FastAPIとReactを連携させる練習として作成したアプリです。 フロントエンドのフォームから数字を送信し、バックエンドでその数字を保存します。 その後、ページをリフレッシュしたり、別のブラウザでアクセスしたりしても、保存された数字が表示されるようになっています。

開発環境の実行手順

1. リポジトリをクローンし、中に入る

git clone https://github.com/oukoutdam/yondabu.git
cd yondabu

2. バックエンドを起動する

2.1 ディレクトリに移動

cd backend

2.2 Pythonの仮想環境準備

python -m venv .venv

2.3 Pythonの仮想環境を使用

Windows

.\.venv\Scripts\activate

Mac or Linux

source .venv/bin/activate

2.4 FastAPIのインストール

pip install -r requirements.txt

2.5 サーバを起動する

fastapi dev main.py

3. フロントエンドを起動する

3.1 ディレクトリに移動

cd ../frontend

3.2 パッケージのインストール

npm install

3.3 フロントエンドサーバの起動

npm run dev

4. フロントエンドのリンクにアクセス

# 多分これ
http://localhost:5173/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •