Skip to content

0xKurt/blobsender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlobSender

A monorepo containing a Foundry smart contract project and a Next.js frontend.

Project Structure

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

Prerequisites

Setup

Install Foundry

If you haven't installed Foundry yet:

curl -L https://foundry.paradigm.xyz | bash
foundryup

Install Dependencies

Install frontend dependencies:

npm install

Development

Smart Contracts

Navigate to the contracts directory:

cd contracts

Run tests:

forge test

Build contracts:

forge build

Run a script:

forge script <script_name>

Frontend

The frontend is a Next.js application with TypeScript and Tailwind CSS.

Start development server:

npm run dev

Or from the root:

npm run dev

The app will be available at http://localhost:3000

Build for production:

npm run build

Start production server:

npm run start

Scripts

From the root directory:

  • npm run dev - Start Next.js development server
  • npm run build - Build Next.js app for production
  • npm run start - Start Next.js production server
  • npm run lint - Run ESLint
  • npm run test:contracts - Run Foundry tests
  • npm run build:contracts - Build Foundry contracts