The web client for OnChat, a decentralized messaging platform on Base.
- Framework: Next.js 16 (App Router)
- Web3: Wagmi, Viem, and Reown AppKit
- Styling: Tailwind CSS 4
- Node.js
- npm
-
Install dependencies:
npm install
-
Set up environment variables in
.env.local:NEXT_PUBLIC_REOWN_PROJECT_ID=your_reown_project_id
npm run devnpm run buildsrc/app/: App router pages and layouts.src/components/: UI components (chat, modals, rewards).src/hooks/: Chat logic (useChat) and profile fetching.src/context/: Blockchain event and state providers.src/helpers/: Contract interactions and utilities.src/configs/: Wagmi/Viem configuration and ABIs.