Standard React FastAPI Environment
Standard React FastAPI Environment
🇺🇸 English | 🇮🇳 हिंदी | 🇯🇵 日本語 | 🇨🇳 简体中文 | 🇪🇸 Español | 🇧🇷 Português (Brasil) | 🇰🇷 한국어 | 🇩🇪 Deutsch | 🇫🇷 Français

次の技術を使用した フルスタック開発環境 です。
- Frontend: Expo(React Native + TypeScript)
- 単一の codebase で Web、Android、iOS に対応
- Backend: FastAPI(Python)
- Database: PostgreSQL
- Container: 一貫した開発環境を構築するための Docker Compose
Features
- Expo による クロスプラットフォーム frontend
- web app として実行でき、Expo Go または standalone builds を使って Android/iOS devices でも動作
- CRUD operations : records の作成、読み取り、更新、削除
- Auth operations : Signup、Signin、Signout
- automatic docs を備えた FastAPI backend
- Swagger UI (/docs) による REST API
🚀 Getting Started
1. Prerequisites
- Docker Compose
- Expo Go(Android/iOS testing 用)
2. すべての services を build して start する:
# set environment variables:
export REACT_NATIVE_PACKAGER_HOSTNAME=${YOUR_HOST}
# Build the image
docker compose build
# Run the container
docker compose up
3. Test:
# Backend pytest
docker compose \
-f docker-compose.test.yml run \
--rm \
--entrypoint /bin/sh backend_test \
-lc ' pytest -q '
# Backend Lint
docker compose \
-f docker-compose.test.yml run \
--rm \
--entrypoint /bin/sh backend_test \
-lc 'ruff check /app /tests'
# Frontend Test
docker compose \
-f docker-compose.test.yml run \
--rm frontend_test
4. services にアクセスする:
-
Backend API: http://localhost:8000/docs

- Frontend UI (WEB): http://localhost:8081
- Frontend UI (mobile): exp://${YOUR_HOST}:8081: Expo が表示する QR からアクセスします。

License
- Apache License 2.0