A decentralized exchange built on Base network with Firebase analytics integration.
- Copy
.env.exampleto.env:
cp .env.example .env- Fill in the required environment variables:
# Required API Keys
VITE_API_KEY= # API key for the DEX service
VITE_AUTH_KEY= # authentication key
# Firebase Configuration
VITE_FIREBASE_API_KEY= # Firebase API key
VITE_FIREBASE_AUTH_DOMAIN=
VITE_FIREBASE_PROJECT_ID=- Install dependencies:
npm install- Start the development server:
npm run dev- Build for production:
npm run build- Token swapping on Base network
- Real-time price quotes
- Comprehensive analytics tracking
- Wallet integration
- Balance checking for tokens
The application tracks various events using Firebase Analytics:
- Swap operations (initiation, success, failure)
- Token selection
- Quote fetching
- Balance checks
- Wallet connections
For more details about analytics implementation, check the Analytics Documentation.
- Never commit the
.envfile to version control - Keep your API keys and Firebase configuration secure
- Use environment variables for all sensitive information
- React + Vite
- Web3.js & Ethers.js
- Firebase Analytics
- TailwindCSS
- Framer Motion