Faucet
Testnet Faucet via Nucleus Wallet
In order to deploy a contract to Zilliqa's testnet and send transactions, you will need testnet $ZIL in your account.
Enter the your wallet address on nucleus wallet's faucet website, you will receive 300 testnet $ZIL once the transaction is confirmed.
The faucet is accessible at https://dev-wallet.zilliqa.com/faucet
Devnet Faucet
In order to deploy a contract to Zilliqa's devnet and send transactions, you will need testnet $ZIL in your account.
Enter the your wallet address faucet website, you will receive 100 devnet $ZIL once the transaction is confirmed.
The devnet faucet is accessible at https://faucet.devnet.zilliqa.com
Source Code
If you are interested in looking into the implementation of the faucet, you can access the GitHub repository can be found at Zilliqa/nucleus-wallet