Eclipse Documentation
HomeBridge
  • 🐮Users
    • Getting Started
      • 1. Set Up Your Eclipse Wallet
      • 2. Bridge Assets for Gas and Transactions
      • 3. Explore the Eclipse Ecosystem
      • 4. Engage with the Community on Discord
    • User Resources
    • Unified Restaking Tokens (URTs)
    • Turbo Tap FAQ
  • 🛠️Developers
    • Getting Started
    • Wallet
      • Mainnet Wallets
      • Testnet & Devnet Wallets
        • Adding Eclipse Wallet to dApp
        • Custom Wallets
    • RPC & Block Explorers
      • Dragon's Mouth gRPC Subscriptions
    • Bridges
      • Eclipse Canonical Bridge
      • Hyperlane
    • Oracles
      • Pyth Network
      • Switchboard
    • NFTs
      • Metaplex
      • Nifty Asset
      • Libreplex (Token-2022)
    • Developer Tooling
      • Faucet
      • Benchmarking
        • Running AMM benchmarking tests
      • Decentralized Identities
        • AllDomains
      • OpenBook Quickstart
      • Multisig
    • Eclipse Bug Bounty Program
    • Eclipse Status Page
    • Frequently Asked Questions
    • Differences Between Eclipse and Solana
    • Eclipse Program Registry Guide
  • 📖Tutorials & Guides
    • Developer Guides
      • Quick Start: "Hello World"
        • Deployment Walkthrough
      • Reading from the blockchain
      • Modifying a Solana dApp to Support Eclipse: "Chomping Glass"
        • Developing on the Solana Virtual Machine (SVM)
        • Multi-chain toggle frontend component
      • Dapp Deployment Tutorial - Eclipse Devnet
        • ⚙️Install Dependencies - Windows
          • Step 1: Install Visual Studio Code (VSC)
          • Step 2: Install Rust and Cargo
          • Step 3: Download Visual Studio C++ Build Tools
          • Step 4: Download Node.js
          • Step 5: Install Git on Windows
          • Step 6: Install the Solana CLI
          • Step 7: Install WSL on Visual Studio Code and Upgrade to WSL2
          • Step 8: Set Up Development Environment in Ubuntu WSL
          • Step 9: Install Anchor on Windows and WSL
        • 🏝️Solana CLI & Solana Keypair
          • Step 1: Set Solana CLI to Use Eclipse Devnet
          • Step 2: Verify Solana CLI Configuration
          • Step 3: Generate a New Solana Keypair
          • Step 4: Claim Devnet ETH for Transaction Fees
          • Optional Step: View Balance on Devnet Explorer
        • 🖥️Creating an Anchor Project in Visual Studio Code
          • Step 1: Initialize Anchor Project
          • Step 2: Update the lib.rs File with Smart Contract Code
          • Step 3: Update the Smart Contract's Cargo.toml File
          • Step 4: Update the Project's Root Cargo.toml File
          • Step 5: Compile Your Program with anchor build
          • Step 6: Deploy Your Project to the Eclipse Devnet
          • Step 7: Verify Program Deployment on the Eclipse Devnet Explorer
        • ✨Building a React App Front-End
          • Step 1: Create a New React Project with TypeScript
          • Step 2: Install Solana Web3.js and Wallet Adapter Dependencies
          • Step 3: Install Additional Dependencies for Enhanced Functionality and Compatibility
          • Step 4: Configure Webpack for Browser Compatibility
          • Step 5: Start the Development Server and Verify Setup
          • Step 6: Implement the UI for Your NFT Minter in App.tsx with Updated Code
      • Eclipse Testnet ETH Transfer Transaction Fee Estimator
        • Program Breakdown
        • Program JSX & CSS
        • Program Execution
      • Pyth: How to Use Real-Time Data in Solana Programs
      • Quick Start: User Guide - Testnet
      • cNFTs on Eclipse
        • Create 1 Million NFTs on Eclipse
        • How to Interact with cNFTs
  • 🧠Eclipse Architecture
    • What is Eclipse Mainnet?
      • Settlement - Ethereum
      • Execution - Solana Virtual Machine (SVM)
      • Data Availability - Celestia
      • Proving - RISC Zero
      • Why Eclipse, Why Ethereum, Why Now
    • Lifecycle of an Eclipse Transaction
  • 📚Additional Resources
    • External Documentation
    • Disclosures
Powered by GitBook
On this page
Edit on GitHub
  1. Tutorials & Guides
  2. Developer Guides
  3. Dapp Deployment Tutorial - Eclipse Devnet
  4. Building a React App Front-End

Step 5: Start the Development Server and Verify Setup

PreviousStep 4: Configure Webpack for Browser CompatibilityNextStep 6: Implement the UI for Your NFT Minter in App.tsx with Updated Code

Last updated 1 year ago

After configuring your project with necessary dependencies and adjusting the Webpack configuration for browser compatibility, the next step is to start your React app's development server. This will allow you to verify that your setup is correct and that your application is ready for development and interaction with the Eclipse Devnet.

Starting the Development Server

  1. Open Your Project's Terminal:

    • Navigate to the terminal within Visual Studio Code or your preferred terminal application. Ensure you're in the root directory of your nftminterfrontend project.

  2. Run the Development Server:

    • Execute the following command to start the development server:

      npm start
    • Alternatively, if you have configured your project to use react-app-rewired for overriding the Webpack configuration without ejecting from create-react-app, make sure to run:

      npm run start
    • This command compiles your application and serves it locally, usually opening your default web browser to http://localhost:3000/ automatically, where you can view your running application.

Verifying Your Setup

  • Check Browser Console: Once your app is running in the browser, open the developer console (usually accessible with F12 or right-click > "Inspect" > "Console" tab). Look for any errors that might indicate issues with the Webpack configuration, missing dependencies, or other setup problems.

  • Test Blockchain Connectivity: If your app includes initial code to establish a connection to the Eclipse blockchain or interact with it, verify that these functionalities are working as expected. For example, you might have code to connect to the Eclipse blockchain's devnet and fetch the balance of a wallet address; ensure this executes without errors.

  • UI Rendering: Ensure that your application's UI renders correctly and that any React components related to Solana interactions (e.g., wallet connection buttons) are visible and functioning.

Troubleshooting

  • Module Not Found Errors: If you encounter errors related to missing modules or packages, double-check your package.json to ensure all necessary dependencies are listed and correctly installed with npm install.

  • Blockchain Connection Issues: Ensure you're pointing to the correct RPC URL for the Eclipse blockchain's devnet and that your Solana wallet adapter setup is correctly configured for wallet connections.

  • Webpack Configuration Errors: If you run into issues related to the Webpack configuration, review your webpack.config.js file or the configuration overrides via react-app-rewired to ensure they match the instructions provided.

Next Steps

  • With your development server running and setup verified, you're ready to proceed with building out the front-end of your NFT minter application. This includes creating UI components for interacting with your smart contract, such as minting NFTs, and integrating wallet functionality for transactions on the Eclipse devnet.

  • Consider implementing features step-by-step, continually testing and verifying functionality through the development server to ensure a smooth development process.

Starting the development server and verifying your setup confirms that your project environment is correctly configured for developing a blockchain-enabled React application, setting the stage for further development and blockchain integration.

📖
✨
Browser Console - No errors