This project is a React frontend application that provides a user interface for the Arkeo Airdrop.
- Node.js 18 or higher
- Yarn package manager
- Docker and Docker Compose (for containerized deployment)
-
Clone the repository:
git clone <repository-url> cd arkeo-airdrop-frontend
-
Install dependencies:
yarn install
-
Create a
.env
file based on the.env.example
:cp .env.example .env
-
Start the development server:
yarn dev
-
Access the application at
http://localhost:5173
(or the port shown in your terminal)
Configure these variables in your .env
file:
Variable | Description |
---|---|
VITE_WALLET_CONNECT_ID | WalletConnect project ID |
VITE_ARKEO_ENDPOINT_REST | Arkeo REST API endpoint |
VITE_ARKEO_ENDPOINT_RPC | Arkeo RPC endpoint |
VITE_THORCHAIN_SERVER | THORChain server URL |
VITE_IS_TESTNET | Set to true for testnet, false for mainnet |
To build the application for production:
yarn build
The built files will be in the dist
directory, ready to be served by a web server.
- Make sure Docker and Docker Compose are installed on your system
- Configure your environment variables in
.env
- Build and start the container:
docker-compose up -d
- Access the application at
http://localhost:3000
-
Build the Docker image:
docker build -t arkeo-airdrop-frontend .
-
Run the container:
docker run -p 3000:80 --env-file .env arkeo-airdrop-frontend
-
Access the application at
http://localhost:3000
arkeo-airdrop-frontend/
├── src/ # Source code
├── public/ # Static assets
├── dist/ # Built application (after build)
├── node_modules/ # Dependencies
├── Dockerfile # Docker configuration
├── nginx.conf # Nginx configuration for production
├── docker-compose.yml # Docker Compose configuration
├── vite.config.js # Vite configuration
├── package.json # Project dependencies and scripts
└── .env # Environment variables (not committed to git)
yarn dev
: Start development serveryarn build
: Build for productionyarn lint
: Run linteryarn preview
: Preview production build locally
MIT