This project includes a frontend, a backend, and an Ethereum node. Below are the steps to set up and launch each component.
Before starting, ensure you have the following tools installed:
git clone https://github.com/aadelop/faucet-eth.git
cd nodo
docker run -v ./data:/data -v ./pwd.txt:/pwd.txt ethereum/client-go:latest account new --datadir /datos --password /pwd.txt
Modify the genesis.json file by adding the address of the created account (located in datos/keystore dir) in the extradata and alloc fields.
Initialise the node configuration with the following command:
docker run -v ./genesis.json:/genesis.json -v ./datos:/datos ethereum/client-go:latest init --datadir /atos /genesis.json
Launch the configured node by running the following command. This will allow you to interact with the node via calls or through Metamask:
docker run -d --rm \
-v ./pwd.txt:/p.txt \
-v ./datos:/data \
-p 5556:8545 \
ethereum/client-go:v1.13.15 \
--datadir /data \
--unlock d847bfdf435d33bd4ff64f8d61f5a9cda0672cf0 \
--allow-insecure-unlock \
--mine \
--miner.etherbase d847bfdf435d33bd4ff64f8d61f5a9cda0672cf0 \
--password /p.txt \
--nodiscover \
--http \
--http.addr "0.0.0.0" \
--http.api "admin,eth,debug,miner,net,txpool,personal,web3" \
--http.corsdomain "*"