Monorepo for the CoinFlip decentralized application.
/contracts– Hardhat project with Solidity smart contracts/frontend– Next.js 14 app with TypeScript
- Node.js 18+
- npm 7+ (for workspaces)
From the repo root, install dependencies for all packages:
npm installFrom the root:
npm run contracts:compile– Compile Solidity contractsnpm run contracts:test– Run contract testsnpm run frontend:dev– Start Next.js dev servernpm run frontend:build– Build Next.js for production
Or run scripts from each package directory:
cd contracts && npm run compile
cd frontend && npm run devPrivate / Unlicense