This faucet app allows anyone who passes a captcha to request tokens for a Antlia account address. This app needs to be deployed on a Antlia testnet full node, because it relies on using the
antliacli command to send tokens.
If you don't have a reCAPTCHA site setup for the faucet, now is the time to get one. Go to the Google reCAPTCHA Admin and create a new reCAPTCHA site. For the version of captcha, choose reCAPTCHA v2.
The backend requires Go and the dep dependency tool to be installed. For the frontend, you also need to have node.js and the yarn dependency tool installed.
go get [email protected]:antlia/antlia-faucet
First, set the environment variables for the backend, using ./backend/.env as a template:
cd $GOPATH/src/github.com/antlia/antlia-faucet/backendcp .env .env.localvi .env.local
Then build the backend.
dep ensurego build faucet.go
The following executable will run the faucet on port 8080.
Run go run
faucet.go in the backend directory to serve the backend.
First, set the environment variables for the frontend, using ./frontend/.env as a template:
cd $GOPATH/src/github.com/antlia/antlia-faucet/frontendcp .env .env.localvi .env.local
Then build the frontend.
Lastly, serve the
./frontend/dist directory with the web server of your choice.
Run yarn serve in the frontend directory to serve the frontend with hot reload.