Gauss Docs
Search
K
Comment on page

For Developers

Building from source

  1. 1.
    Clone repository
git clone https://github.com/Gauss-Gang/GIL-faucet
  1. 2.
    Copy config.json.example to config.json
cp config.json.example config.json
  1. 3.
    Update config.json ./config.json (see config.json with placeholders below)
  2. 4.
    Update ./public/index.html: Find <div class="g-recaptcha" data-sitekey="type your reCaptcha plugin secret here"></div> line and type your reCaptcha plugin secret in data-sitekey attribute. For more info, see
  3. 5.
    Install dependencies npm install from the project's root
  4. 6.
    Run faucet with npm start. GIL Testnet faucet will be launched at http://localhost:5000

Server config.json (./config.json) with placeholders

{
"environment": "switcher between configurations: 'prod' or 'dev'",
"debug": "switch on/off server logs: true or false",
"Captcha": {
"secret": "reCaptcha plugin secret"
},
"Ethereum": {
"etherToTransfer": "The number of milliEther to be sent from the faucet. For example, 500",
"gasLimit": "Transaction gas limit, for example, 21000",
"prod": {
"rpc": "JSON RPC endpoint. For example, https://rpc.giltestnet.com",
"account": "The address from which the funds will be drained",
"privateKey": "Private key of the account"
},
"dev": {
...
}
}
}