Skip to content

zbcoding/daowebsite

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

Installation

npm ci

Environment Setup

  1. Copy .env.example to .env.local:

    cp .env.example .env.local
  2. Fill in the required environment variables in .env.local

  3. Optional: Enable testnet mode for Polygon Amoy:

    NEXT_PUBLIC_USE_TESTNET="true"

    See TESTNET_MODE.md for detailed network configuration.

Development Server

Run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

Testing

Run the test suite:

npm test              # Run all tests
npm run test:watch    # Run tests in watch mode
npm run test:coverage # Run tests with coverage report

See TESTING.md for detailed testing documentation.

Network Configuration

This project supports automatic switching between Polygon Mainnet and Polygon Amoy Testnet.

  • Mainnet (default): Set NEXT_PUBLIC_USE_TESTNET="" or "false"
  • Testnet: Set NEXT_PUBLIC_USE_TESTNET="true"

See TESTNET_MODE.md for complete network configuration details.

Project Structure

components/
├── auth/          # Authentication components
├── dao/           # DAO and governance components
├── staking/       # Staking components
├── home/          # Home page sections
├── swap/          # Token swap components
└── shared/        # Shared UI components

config/
└── contracts.js   # Network and contract configuration

__tests__/         # Test files

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 73.4%
  • CSS 26.0%
  • Other 0.6%