create-pharos-app
v1.0.0
Published
Create a Next.js app with Pharos network Hardhat configuration
Maintainers
Readme
Next.js + Hardhat Scaffold
This is a full-stack dApp scaffold featuring:
- Next.js frontend with TypeScript, Tailwind CSS, and ESLint
- Hardhat smart contract development environment
- Counter smart contract example
- Web3 frontend integration with ethers.js and Web3Modal
Quick Start
- Install dependencies and run the setup script:
npm install
npm run setup- After setup completes, follow these steps:
Smart Contract Development
cd contracts
npx hardhat compile
npx hardhat nodeIn a new terminal:
npx hardhat run scripts/deploy.js --network localhostFrontend Development
cd client
npm run devVisit http://localhost:3000 to see your application.
Project Structure
├── client/ # Next.js frontend application
└── contracts/ # Hardhat project
├── contracts/ # Smart contracts
└── scripts/ # Deployment scriptsFeatures
- 🎨 Modern, responsive UI with Tailwind CSS
- 📱 Web3Modal integration for wallet connection
- ⛓️ Custom Pharos network configuration
- 🔄 Counter smart contract example
- 🛠️ Full TypeScript support
- 📝 ESLint for code quality
Environment Variables
Create a .env file in the contracts directory:
PRIVATE_KEY=your_private_key