Lender and borrower dashboard for the Creditra adaptive credit protocol on Stellar.
This app provides a simple UI to:
- Connect Stellar wallet (Freighter, Albedo) with secure onboarding
- View dashboard summary (credit limit, utilization, risk score)
- Browse and manage credit lines
- (Future) Request credit evaluation, draw and repay
It talks to the creditra-backend API for risk and credit data, and can be extended to interact with Soroban contracts via Stellar SDK.
Complete wallet integration with:
- 🔗 Connect Freighter, Albedo, xBull, or Rabet wallets
- 👋 First-time user onboarding (3-step flow)
- ✅ Connection status indicators
⚠️ Comprehensive error handling- 💾 Persistent wallet preference
- 🔒 Security-first design
Quick Start: See WALLET_SETUP.md for details.
- React 18 + TypeScript
- Vite for build and dev server
- React Router for navigation
- Context API for state management
- Node.js 18+
- npm or yarn
cd creditra-frontend
npm install
npm run devOpen http://localhost:5173.
npm run build
npm run preview # serve dist/Create a .env file if you need to point to a specific backend:
VITE_API_URL=http://localhost:3000Use import.meta.env.VITE_API_URL in the app.
src/— React app (main, App, pages, components, context)src/components/— Reusable UI components (WalletConnectionModal, OnboardingFlow, WalletButton)src/context/— Global state management (WalletContext)src/pages/— Dashboard, Credit Linessrc/types/— TypeScript type definitionssrc/utils/— Utility functions (wallet integration)index.html— entry HTMLvite.config.ts— Vite config and path alias@/
- WALLET_SETUP.md - Quick start guide for wallet feature
- WALLET_IMPLEMENTATION.md - Complete technical documentation
- USER_FLOWS.md - User flow diagrams
- COMPONENT_SPECS.md - Design specifications
- VISUAL_STATES.md - UI state mockups
- PROJECT_SUMMARY.md - Project overview
This repo is a standalone git repository. After adding your remote:
git remote add origin <your-creditra-frontend-repo-url>
git push -u origin main