JSPM

@morphl2/create-morph-app

2.0.2
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 2
    • Score
      100M100P100Q23959F
    • License MIT

    Create Morph applications with various templates

    Package Exports

      This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@morphl2/create-morph-app) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

      Readme

      Create Morph App

      Create Morph applications with different templates and configurations.

      Quick Start

      npx @morphl2/create-morph-app@latest

      Available 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_id

      Smart Contracts (.env)

      PRIVATE_KEY=your_private_key_here
      RPC_URL=your_rpc_url_here

      Project Structure

      Both templates follow the same basic structure:

      your-app/
      ├── contracts/
      │   ├── hardhat/
      │   │   ├── contracts/
      │   │   ├── scripts/
      │   │   └── test/
      │   └── foundry/
      │       ├── src/
      │       ├── test/
      │       └── script/
      └── frontend/
          ├── app/
          ├── components/
          └── public/

      Development

      1. Set up environment variables
      2. Install dependencies in each directory
      3. Start frontend development server
      4. Deploy contracts using Hardhat or Foundry

      License

      MIT