Standard React FastAPI Environment

License OS Python

CI Python Lint pages-build-deployment CodeQL Advanced

Python Pytest FastAPI React Native TypeScript Jest Expo

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

"web_ui"

फुल-स्टैक डेवलपमेंट वातावरण जिसमें शामिल हैं:


सुविधाएँ

  • Expo के साथ cross-platform 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

🚀 शुरू करना

1. आवश्यकताएँ

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 "backend"

  • Frontend UI (WEB): http://localhost:8081
  • Frontend UI (mobile): exp://${YOUR_HOST}:8081: Expo द्वारा दिए गए QR से access करें। "expo"

License

  • Apache License 2.0