A cross-chain decentralized exchange web application built with Next.js, supporting multiple EVM networks including Ethereum Sepolia, Base Sepolia, Etherlink Testnet, Tron Nile, and Monad Testnet.
- Clone the repository:
git clone git@github.com:21inches/Webapp.git
cd Webapp
- Install dependencies:
pnpm install
Start the development server:
pnpm run dev
The application will be available at http://localhost:3000
Create a .env
file in the root directory with the following variables:
ETHERLINK_TESTNET_USER_PRIVATE_KEY=***
MONAD_TESTNET_USER_PRIVATE_KEY=***
BASE_SEPOLIA_USER_PRIVATE_KEY=***
SEPOLIA_USER_PRIVATE_KEY=***
pnpm run dev
- Start development serverpnpm run build
- Build for productionpnpm run start
- Start production serverpnpm run lint
- Run ESLintpnpm run format
- Format code with Prettierpnpm run format:check
- Check code formatting
- Framework: Next.js 15.4.4
- Language: TypeScript
- Styling: Tailwind CSS
- Web3: Viem, Wagmi, RainbowKit
- State Management: TanStack Query
- Package Manager: pnpm
src/
├── app/
│ ├── api/ # API routes
│ ├── components/ # React components
│ ├── constants/ # Contract addresses and configurations
│ ├── logic/ # Business logic
│ ├── types/ # TypeScript type definitions
│ └── utils/ # Utility functions