An amazing web application that shows a way to process a payment regarding the Ethereum blockchain
- Open your terminal
:) - Clone the repository
git clone https://github.com/caffeinealgorithm/eat-transactions.git
- Enter to the repository directory
cd eat-transactions
- Install all the dependencies
yarn installornpm install
- Get your Etherscan API Token (optional)
- Set your token in the
.envfile (optional)REACT_APP_API_TOKEN=""
- To start everything up
yarn startornpm run start
- To run the tests
yarn testornpm run test
- Open your browser and feed me some yummy transactionaly goodies
- Etherscan API already checks for
0x, so, the request to get the transaction data by hash works with or without0x; - Not including external requests in unit testing (ex. Not making an actual request ~ but checking if the status code is different from
200); - Best way (without using third party services) to check transaction confirmations will be using web3;
- For the future, checking out the transaction receipt status for this kind of things is important;
axioswould also be a good dependency for the web application regarding HTTP requests;- Can't miss the importance of an CI workflow.
- Be careful, don't eat too many transactions (I'm already getting fat with all this tests).