| Tool | Version | Notes |
|---|---|---|
| Node.js | ≥ 18 | LTS recommended |
| npm | ≥ 9 | Bundled with Node |
| Git | Any | For cloning |
| Wallet | MetaMask / any EVM wallet | Base Sepolia testnet |
git clone <repository-url>
cd ys-frontendnpm installCreate a .env.local file in the project root:
# Reown (AppKit) project ID
# Get yours at: https://cloud.reown.com
NEXT_PUBLIC_APPKIT_PROJECT_ID=your_project_id_here
# YieldSaveVault smart contract address on Base Sepolia
NEXT_PUBLIC_YIELD_SAVE_CONTRACT_ADDRESS=0x...
# USDC token contract address on Base Sepolia
NEXT_PUBLIC_USDC_CONTRACT_ADDRESS=0x...
# Base Sepolia RPC URL (defaults to public endpoint if not set)
NEXT_PUBLIC_BASE_SEPOLIA_RPC_URL=https://sepolia.base.orgWhy
NEXT_PUBLIC_prefix? Next.js only exposes env vars to the browser bundle when they are prefixed withNEXT_PUBLIC_. All four variables are read client-side.
- Go to cloud.reown.com
- Create a new project
- Set the allowed domains to include
localhost:3000for local development - Copy the Project ID into
.env.local
Base Sepolia uses a test version of USDC. You can mint test tokens from the Circle faucet or the Base Sepolia USDC faucet. Ensure your wallet also has Base Sepolia ETH for gas (available from the Base faucet at https://www.coinbase.com/faucets/base-ethereum-sepolia-faucet).
npm run devOpen http://localhost:3000 for the landing page. Open http://localhost:3000/app for the dashboard.
| Command | Description |
|---|---|
npm run dev |
Start Next.js dev server with hot reload |
npm run build |
Compile for production (runs type-check + lint) |
npm run start |
Start the compiled production server |
npm run lint |
Run ESLint across the project |
npm run test |
Placeholder — no tests yet |
- Make sure MetaMask (or any EVM wallet) is installed
- Add Base Sepolia network to your wallet:
- Network Name: Base Sepolia
- RPC URL:
https://sepolia.base.org - Chain ID:
84532 - Currency: ETH
- Explorer:
https://sepolia.basescan.org
- Click Connect Wallet in the app and select your wallet
See Troubleshooting Guide for common setup errors.