The Faucet is built using React and Next.js.
- Add and update .env file:
mv .env.example .env
AXON_FAUCET_REQUIRED_CONFIRMATIONS=10
AXON_FAUCET_CLAIM_VALUE=1000000000000000000
AXON_FAUCET_RPC_URL=<your_axon_rpc_url>
AXON_FAUCET_CHAIN_ID=<your_axon_chain_id>
AXON_FAUCET_MONGODB_URL=<mongodb_url_with_password>
AXON_FAUCET_MONGODB_DB=<mongodb_table_name>
AXON_FAUCET_MONGODB_PASSWORD=<mongodb_password>
AXON_FAUCET_MONGODB_TRANSACTIONS_COLLECTION=Transactions
AXON_FAUCET_MONGODB_ADDRESSES_COLLECTION=Addresses- launch via Docker Compose:
docker compose up- Mnemonic initialization
curl http://localhost:8502/api/import-mnemonic?mnemonic=test%20test%20test%20test%20test%20test%20test%20test%20test%20test%20test%20junkTo contribute to the Axon Faucet, follow these steps:
- Clone the repository:
git clone https://github.com/axonweb3/axon-faucet.git- Install the dependencies:
We use Yarn as our package manager.
npm install yarn -g
yarn install- Add and update .env file:
mv .env.example .env
AXON_FAUCET_REQUIRED_CONFIRMATIONS=10
AXON_FAUCET_CLAIM_VALUE=1000000000000000000
AXON_FAUCET_RPC_URL=<your_axon_rpc_url>
AXON_FAUCET_CHAIN_ID=<your_axon_chain_id>
AXON_FAUCET_MONGODB_URL=<mongodb_url_with_password>
AXON_FAUCET_MONGODB_DB=<mongodb_table_name>
AXON_FAUCET_MONGODB_PASSWORD=<mongodb_password>
AXON_FAUCET_MONGODB_TRANSACTIONS_COLLECTION=Transactions
AXON_FAUCET_MONGODB_ADDRESSES_COLLECTION=Addresses- Start the development server:
yarn dev- Mnemonic initialization
curl http://localhost:3000/api/import-mnemonic?mnemonic=test%20test%20test%20test%20test%20test%20test%20test%20test%20test%20test%20junk- Open your browser and go to http://localhost:3000/ to see the website in action.
We welcome contributions from the community.
Axon Website is open-source software licensed under the MIT license.
