A comprehensive starter template for building decentralized applications on AERE Network. This template provides everything you need to get started quickly with best practices already implemented.
Download TemplateMake sure you have the following installed:
# Clone the repository
git clone https://github.com/aere-network/dapp-starter.git my-dapp
# Navigate to the project directory
cd my-dapp
# Install dependencies
npm install
# or
yarn install
# Start the development server
npm run dev
# or
yarn dev
Create a .env
file in the root directory with the following variables:
VITE_CHAIN_ID=2800
VITE_RPC_URL=https://api.aere.network/rpc
VITE_BLOCK_EXPLORER_URL=https://explorer.aere.network
my-dapp/
├── public/
│ ├── favicon.ico
│ └── ...
├── src/
│ ├── components/
│ │ ├── ConnectWallet.tsx
│ │ ├── TokenBalance.tsx
│ │ ├── SwapInterface.tsx
│ │ └── ...
│ ├── hooks/
│ │ ├── useEthereum.ts
│ │ ├── useTokens.ts
│ │ └── ...
│ ├── pages/
│ │ ├── Home.tsx
│ │ ├── Swap.tsx
│ │ └── ...
│ ├── services/
│ │ ├── api.ts
│ │ └── ...
│ ├── App.tsx
│ ├── main.tsx
│ └── ...
├── .env
├── package.json
├── tsconfig.json
└── ...
You can customize the DApp starter template to suit your specific needs:
src/styles/theme.ts
src/contracts/
src/hooks/useEthereum.ts
The template is pre-configured to connect to AERE Network. Make sure your wallet is configured to use AERE Network:
To build your DApp for production:
# Build the application
npm run build
# or
yarn build
# The build output will be in the dist/ directory
For additional help and resources: