This demo is designed to show you the different types of Algorand smart contracts as well as some example use cases for them.
Note: this demo focuses almost entirely on the Algorand smart contract workflow. You should have some basic knowledge of Node.js, and you should also be able to understand how to make a transaction on the Algorand blockchain.
- Please note that this demo has not been audited for security and should not be used in a production environment without modifications to enhance the security.
- You should have access to an Algorand node (this demo assumes you're using PureStake).
- You should have Node.js installed on your computer.
- You should be using Google Chrome, because AlgoSigner only works on Google Chrome at this time.
- You should have the AlgoSigner Google Chrome extension installed, as this demo makes extensive use of it.
- You should also make a couple of wallets on Algorand TestNet and use the TestNet ALGO Faucet to generate Algos for them, as these exercises demonstrate how to move assets between two or more addresses.
- In order to use this demo, you can either clone it using Git or download it as a .zip file.
- Once you have the demo cloned or unpacked, replace the example API key in .env-EXAMPLE with the API key you use to make Algorand API requests.
- Rename .env-EXAMPLE to .env in order to use your API key in Node.
- Open a terminal or command prompt in the folder you unzipped to.
- Run
npm installto install dependencies. - Run
node app.jsto run the application. - Navigate to the server address in Google Chrome to use the demo.
algo-html-demo is licensed under the MIT license. See the LICENSE file for details.