Minimal decentralized app frontend: React + TypeScript + Vite + wagmi (Ethereum wallet connect).
cd dapp
npm install
npm run devThe dev server prints a local URL (default http://localhost:5173).
| Command | Description |
|---|---|
npm run dev |
Dev server + HMR |
npm run build |
Production bundle |
npm run preview |
Serve production build |
The remote may have been empty; after your first commit:
git add .
git commit -m "Scaffold Vite + React + wagmi dapp"
git branch -M main
git remote add origin https://github.com/Pragati5-DEBUG/dapp.git # skip if already set
git push -u origin main- Add a
contracts/folder and Hardhat or Foundry for Solidity. - Configure RPC URLs (e.g. Alchemy/Infura) via env vars instead of public defaults.
- Use
viemfrom your components to read contracts and send transactions.