The present tutorial is designed to cater to the needs of programmers with varying degrees of proficiency, who aspire to engage in web3 development or Algorand chain development. A basic comprehension of javascript, python, and smart contracts would suffice as a prerequisite to engage with the content. The tutorial is structured in a manner that facilitates progressive learning, with the aim of enabling the participant to attain a comprehensive understanding of the Algorand development pipeline and successfully create a functional dapp.
- Install the dependencies.
cd algorand-backend
npm install
- Create the python virtual environment and install the dependencies.
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- Run the first file to create an account.
node scripts/1-create-account.js
Make sure you saved the account data and open in in a wallet created on Pera Wallet
- Run the songvote script in python to create the artifacts
python3 contracts/songvote.py
- Deploy the smart contracts Make sure you changed the mnemonic in:
let myaccount = algosdk.mnemonicToSecretKey("your mnemonic");
Then run the script.
node scripts/5-deploy-songvote.js
- Start the front-end
cd ..
cd songvote
Make sure you update the app id with the one from the terminal earlier
// CHANGE THIS TO YOUR APP ID
const app_address = YOUR APP ID;
// CHANGE THIS TO YOUR APP ID
When the code is prepared, install the dependencies:
npm install
Then start the dev server:
npm run dev