SmartCredit 360 is a bilingual lending demo built on Salesforce, FastAPI, React, and Flutter. It models a modern credit-origination flow with customer-facing web/mobile channels, AI-assisted scoring, internal Salesforce operations, and compliance-aware workflows.
SmartCredit 360; Salesforce, FastAPI, React ve Flutter üzerine kurulu iki dilli bir kredi platformu demosudur. Müşteri web/mobil kanalları, AI destekli skor hesaplama, Salesforce operasyon ekranları ve uyumluluk odaklı süreçleri tek akışta birleştirir.
React Web Portal Flutter Mobile App
\ /
\ Bearer Auth /
v v
FastAPI Integration Gateway
| | |
| | +--> AI Credit Scoring
| +------------> Auth / Demo Customer Layer
+--------------------> Salesforce Lending Core
|
+--> Apex Services / Triggers / Flows
+--> Objects / Validation Rules / Tabs
+--> LWC Internal UI
- Customers use the React portal or Flutter mobile app to log in, review products, check score estimates, and submit loan applications.
- Both clients talk only to the FastAPI gateway. No Salesforce credentials are stored in React or Flutter.
- The FastAPI layer authenticates users, calls the AI scoring logic, and syncs applications/products/status data with Salesforce.
- Salesforce acts as the lending core. Custom objects, Apex services, triggers, validation rules, and flows manage underwriting, collateral, agreements, collections, and compliance tracking.
- Internal teams can use Salesforce tabs, Lightning App pages, and LWCs to review applications and operational data.
- Musteriler React portal veya Flutter mobil uygulama uzerinden giris yapar, urunleri gorur, skor tahmini alir ve kredi basvurusu gonderir.
- Her iki istemci de sadece FastAPI gateway ile konusur. Salesforce sifreleri istemci tarafinda tutulmaz.
- FastAPI katmani kullanici dogrulama, AI skor hesaplama ve Salesforce veri senkronizasyonunu yonetir.
- Salesforce sistemin cekirdegidir. Ozel objeler, Apex servisleri, trigger'lar, validation rule'lar ve flow'lar kredi surecini yonetir.
- Ic ekipler Salesforce icindeki tab'ler, Lightning uygulamasi ve LWC ekranlariyla operasyonlari takip eder.
force-app/: Salesforce metadata, objects, Apex, flows, tabs, permission sets, and LWCs.python-api/: FastAPI gateway for authentication, products, applications, compliance, and scoring.react-app/: Customer-facing web experience built with Vite + React.smartcredit_mobile/: Flutter mobile app for the same customer journey.assets/branding/: Shared SmartCredit 360 logo system and app icon source.docs/mockups/: Approved product visuals used in this README.
force-app/: Salesforce metadata, objeler, Apex siniflari, flow'lar, permission set'ler ve LWC'ler.python-api/: Kimlik dogrulama, urunler, basvurular, compliance ve skor islemleri icin FastAPI katmani.react-app/: Musteri odakli web arayuzu.smartcredit_mobile/: Ayni yolculugun Flutter mobil uygulamasi.assets/branding/: Ortak logo sistemi ve app icon kaynagi.docs/mockups/: README icindeki urun gorselleri.
The SmartCredit shield logo is now wired into the delivery surfaces:
- Flutter app icon assets updated for Android, iOS, and Flutter Web.
- React web favicon now uses the SmartCredit brand mark.
- Shared icon source: assets/branding/smartcredit-app-icon.svg
cd python-api
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
uvicorn main:app --reload --port 8000cd react-app
npm install
cp .env.example .env
npm run devcd smartcredit_mobile
flutter pub get
flutter run --dart-define=SMARTCREDIT_API_URL=http://10.0.2.2:8000/apisf project deploy start --source-dir force-app/main/default --target-org orgpilot-dev
sf org assign permset --name SmartCredit_360_Admin --target-org orgpilot-dev
sf apex run --file scripts/apex/01_seed_products.apex --target-org orgpilot-dev- Create the
SmartCredit_AINamed Credential for Apex callouts. - Point it to a reachable FastAPI base URL, not
localhost. - Open App Launcher and launch
SmartCredit 360.
- React and Flutter hold only customer-facing tokens and non-secret API base URLs.
- Salesforce credentials and server secrets stay in
python-api/.env. - This keeps the browser and mobile clients isolated from direct Salesforce secret exposure.
- React ve Flutter tarafinda sadece kullanici token'i ve gizli olmayan API adresleri bulunur.
- Salesforce giris bilgileri ve gizli anahtarlar sadece
python-api/.envicinde tutulur. - Boylece istemci uygulamalari dogrudan Salesforce sirlarina erismez.
- Seed products in Salesforce.
- Start the FastAPI gateway.
- Open the React app or launch Flutter.
- Log in with the demo customer.
- Submit an application.
- Review the synced record and underwriting/compliance fields in Salesforce.
- This repository is a professional demo architecture, not legal or regulatory advice.
- For production use, connect real bureau, KYC, OFAC, audit, encryption, and model-governance systems.





