Skip to content

Static password-protected faucet hostable on Github pages.

License

Notifications You must be signed in to change notification settings

Ethernautas/faucet

 
 

Repository files navigation

🚰 faucet

This is a password-protected faucet that can be hosted on Github pages.

Note that anyone with the password can withdraw all funds.

Currently supports testnet only. Supported cryptocurrencies:

  • BTC
  • ZEC
  • BCH
  • FIL
  • ETH
  • ERC20 tokens

Setting up

Get an Infura key and add create a .env file, replacing INFURA_KEY:

REACT_APP_ETHEREUM_NODE="https://kovan.infura.io/v3/INFURA_KEY"

Install dependencies:

yarn

Choose a password and create a private key, replacing PASSWORD:

yarn generateKey.js PASSWORD

Start the development server to localhost:3000:

yarn start

Customize src/components/Lock.svg with the desired logo or symbol.

Deploying to Github pages

Update the homepage field in package.json:

    "homepage": "https://username.github.io/repo-name",

Run

yarn deploy

Preview

Password prompt: Preview 1

Faucet: Preview 2

About

Static password-protected faucet hostable on Github pages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 69.8%
  • SCSS 22.6%
  • JavaScript 3.9%
  • HTML 3.7%