PanCred is a Web3 microfinance prototype that connects borrower and lender workflows. The application combines wallet onboarding, liveness checks, trust scoring, and smart contracts for lending on the Ethereum Sepolia test network.
| Component | Responsibilities |
|---|---|
| Frontend | React and Vite application for onboarding, profile, borrowing, and lending |
| Backend | Express API with MongoDB, Redis, and services for matching and trust scoring |
| Smart contracts | Solidity contracts, Hardhat scripts, and tests for loan agreements and identity |
| Deployment workflow | AWS deployment configuration |
Use Node.js 20, npm, MongoDB, and Redis. From the repository root, install and start the backend in one terminal.
cd backend
npm ciAdd a backend/.env with MONGO_URI, REDIS_URL, and the integration settings for the features you’re using. Configure a testnet RPC and a dedicated development wallet for blockchain workflows. Start the API with npm run dev.
In a second terminal, start the frontend.
cd frontend
npm ci
npm run devOpen the local URL printed by Vite. To run the contract tests from a separate terminal:
cd blockchain
npm ci
npx hardhat test