2.0.2 • Published 8 months ago
@morphl2/create-morph-app v2.0.2
Create Morph App
Create Morph applications with different templates and configurations.
Quick Start
npx @morphl2/create-morph-app@latestAvailable Templates
Basic Starter Kit
A clean foundation for building on Morph, including:
- Hardhat & Foundry development environment
 - Next.js frontend with Web3 integration
 - Wallet connection setup
 - Basic smart contract examples
 
Pyth Oracle Template
Everything in the basic kit plus:
- Pyth Oracle integration
 - Price feed examples
 - Oracle data display components
 
Environment Setup
After creating your project, you'll need to set up your environment:
Frontend (.env.local)
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=your_wallet_connect_project_idSmart Contracts (.env)
PRIVATE_KEY=your_private_key_here
RPC_URL=your_rpc_url_hereProject Structure
Both templates follow the same basic structure:
your-app/
├── contracts/
│   ├── hardhat/
│   │   ├── contracts/
│   │   ├── scripts/
│   │   └── test/
│   └── foundry/
│       ├── src/
│       ├── test/
│       └── script/
└── frontend/
    ├── app/
    ├── components/
    └── public/Development
- Set up environment variables
 - Install dependencies in each directory
 - Start frontend development server
 - Deploy contracts using Hardhat or Foundry
 
License
MIT