- Swift 5
- libsodium
- Vapor
brew install libsodium
brew tap vapor/tap
brew install vapor/tap/vapor
git clone https://github.com/nervosnetwork/ckb-testnet-faucet.git
cd ./ckb-testnet-faucet/faucet-server
swift build
./.build/debug/Run --env dev \
--wallet_private_key <private_key> \
--node_url <node_url> \
--github_oauth_client_id <client_id> \
--github_oauth_client_secret <client_secret> \
--send_capacity_count <send_capacity_count> \
--db_hostname <db_hostname> \
--db_port <db_port> \
--db_username <db_username> \
--db_password <db_password> \
--db_database <db_database>
swift test