How egormarkor/legitcheck works
Legitcheck is a Django service that routes requests to separate web and PC web applications by domain, alongside a React Native client using Telegram-based login and verdict/payment features. The main user journey is authenticate, submit or look up a product check, then view its verdict; the backend also has persistent user, verdict, photo, and payment-related domain models. README evidence establishes host routing, while sampled mobile code establishes client actions. Backend API-to-client endpoint matching and several integrations are not verified from the available excerpts, so those links are omitted or marked unverified.
Main entry points: RootNavigator.tsx App navigation · client.ts API client · AuthScreen.tsx Telegram login · views.py Web app handlers
Components 23
Native mobile client
- App navigation
mobile-native/src/navigation/RootNavigator.tsx - Telegram login
mobile-native/src/screens/AuthScreen.tsx - Home
mobile-native/src/screens/HomeScreen.tsx - Submit check
mobile-native/src/screens/CheckScreen.tsx - Verdict list
mobile-native/src/screens/VerdictsScreen.tsx - Verdict detail
mobile-native/src/screens/VerdictDetailScreen.tsx - Account
mobile-native/src/screens/AccountScreen.tsx - Payment
mobile-native/src/screens/PaymentScreen.tsx - Auth state
mobile-native/src/context/AuthContext.tsx - API client
mobile-native/src/api/client.ts
Django service
- Django runtime
legitcheck/host_routing_middleware.py - Web app routes
webapp/urls.py - PC app routes
pcwebapp/urls.py - Web app handlers
webapp/views.py - PC app handlers
pcwebapp/views.py
Product data
- Web domain models
webapp/models.py - PC domain models
pcwebapp/models.py - Photo processing
webapp/image_utils.py
External integrations
- Telegram bot
telegram_login_bot.py - Telegram services
webapp/telegram.py
Other components
- Mobile user
- Telegram
- HTTP API
Connections 27
- Mobile user → App navigation: uses
mobile-native/src/navigation/RootNavigator.tsx - App navigation → Telegram login: routes to
mobile-native/src/navigation/RootNavigator.tsx - App navigation → Home: routes to
mobile-native/src/navigation/RootNavigator.tsx - App navigation → Submit check: routes to
mobile-native/src/navigation/RootNavigator.tsx - App navigation → Verdict list: routes to
mobile-native/src/navigation/RootNavigator.tsx - App navigation → Account: routes to
mobile-native/src/navigation/RootNavigator.tsx - App navigation → Verdict detail: routes to
mobile-native/src/navigation/RootNavigator.tsx - App navigation → Payment: routes to
mobile-native/src/navigation/RootNavigator.tsx - Telegram login → API client: requests login
mobile-native/src/screens/AuthScreen.tsx - Telegram login → Auth state: sets user
mobile-native/src/screens/AuthScreen.tsx - Auth state → API client: fetches user
mobile-native/src/context/AuthContext.tsx - Submit check → API client: submits checks
mobile-native/src/screens/CheckScreen.tsx - Verdict detail → API client: loads verdict
mobile-native/src/screens/VerdictDetailScreen.tsx - Account → API client: loads account
mobile-native/src/screens/AccountScreen.tsx - Payment → API client: requests payment
mobile-native/src/screens/PaymentScreen.tsx - API client → HTTP API: sends HTTP
mobile-native/src/api/client.ts - HTTP API → Web app handlers: may dispatch
- Django runtime → Web app routes: selects by host
README.md - Django runtime → PC app routes: selects by host
README.md - Web app handlers → Web domain models: uses domain data
webapp/views.py - Web app handlers → Telegram services: calls service
webapp/views.py - PC app handlers → PC domain models: uses domain data
pcwebapp/views.py - PC domain models → Web domain models: references users
pcwebapp/models.py - Web domain models → Photo processing: watermarks photos
webapp/models.py - PC domain models → Photo processing: watermarks photos
pcwebapp/models.py - Telegram bot → Telegram services: uses service
telegram_login_bot.py - Telegram bot → Telegram: communicates