Monorepo (pnpm workspace) for the ChainPresence AI hackathon project.
chain/— Solidity smart contracts (Hardhat + TypeScript), deployed to Sepolia testnet.next/— Next.js frontend (TypeScript, Tailwind, App Router).docs/—project.md(spec) anddesign.md(design notes).
- Node.js v20+ (tested on v22)
- pnpm v9+ — install with:
npm install -g pnpm - git
git clone <repo-url>
cd ChainPresence
pnpm installIf pnpm prompts about ignored build scripts, run:
pnpm approve-buildsselect all, approve.
pnpm devOpen the printed URL — usually http://localhost:3000
pnpm compile # compile contracts
pnpm deploy:sepolia # deploy to Sepolia (needs chain/.env — see chain/.env.example)Copy chain/.env.example to chain/.env and fill in SEPOLIA_RPC_URL and PRIVATE_KEY before deploying. Never commit .env.
- Always use
pnpm, notnpm, in this repo — it's a pnpm workspace. next/andchain/are independent packages sharing one lockfile at the root.