A monorepo containing a Foundry smart contract project and a Next.js frontend.
blobsender/
├── contracts/ # Foundry smart contract project
│ ├── src/ # Solidity source files
│ ├── test/ # Foundry test files
│ ├── script/ # Foundry deployment scripts
│ └── foundry.toml # Foundry configuration
├── frontend/ # Next.js frontend application
│ ├── app/ # Next.js app directory
│ ├── public/ # Static assets
│ └── package.json # Frontend dependencies
└── package.json # Root workspace configuration
If you haven't installed Foundry yet:
curl -L https://foundry.paradigm.xyz | bash
foundryupInstall frontend dependencies:
npm installNavigate to the contracts directory:
cd contractsRun tests:
forge testBuild contracts:
forge buildRun a script:
forge script <script_name>The frontend is a Next.js application with TypeScript and Tailwind CSS.
Start development server:
npm run devOr from the root:
npm run devThe app will be available at http://localhost:3000
Build for production:
npm run buildStart production server:
npm run startFrom the root directory:
npm run dev- Start Next.js development servernpm run build- Build Next.js app for productionnpm run start- Start Next.js production servernpm run lint- Run ESLintnpm run test:contracts- Run Foundry testsnpm run build:contracts- Build Foundry contracts