Welcome to the all-in-one Algorand Codespace! This repository is designed to provide you with everything you need to start developing on the Algorand blockchain, whether you're attending a workshop, completing a challenge, or just exploring on your own.
To create your own copy of this repository:
a. Go to the GitHub Repository:
- Navigate to the main page which is the current one your on.
b. Click the "Fork" Button:
- In the top-right corner of the page, click the Fork button. This will create a copy of the repository under your GitHub account.
c. Wait for the Forking Process to Complete:
- GitHub will take a few moments to create the fork. Once complete, you’ll be redirected to your newly created fork.
This is the fastest way to get up and running!
- Create a Codespace:
Simple.Latest.setup.mp4
- Click the green "Code" button at the top right of your forked repo.
- Select "Create codespace on main".
- Once your Codespace is fully loaded, you are ready to go!
- Start Coding:
- Open the
main.py
file to start coding and interact with the Algorand blockchain (no smart contracts needed). - If you notice your codespace loaded with a similar error to the screenshot below, no worries! Just run
algokit localnet start
- Open the
![Screenshot 2024-12-10 at 14 58 16](https://private-user-images.githubusercontent.com/127313669/394330363-f079d90d-3fa7-45c5-b339-170b7fec772d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4NTQzNDQsIm5iZiI6MTczOTg1NDA0NCwicGF0aCI6Ii8xMjczMTM2NjkvMzk0MzMwMzYzLWYwNzlkOTBkLTNmYTctNDVjNS1iMzM5LTE3MGI3ZmVjNzcyZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxOFQwNDQ3MjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mMTA5NTkyZTYzYjAyNTFlYmU4YTNmNWNiNTBhZWVjYmU0ZDhmN2QyZmU2NTUyODhmN2RkM2E5MWJkYmQ4ZjhjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.KItfr31wxm6kf7PYSNun-alabSuH0QQO4j23_6BM7UM)
- Lastly the
main.py
file is pre-populated with a simple script to quickly set up a local dispenser on the Algorand blockchain. This helps you get started immediately by connecting to the localnet and printing the dispenser address. Run it!python main.py
like any other Python file :)
-
Workshop Follow-Along:
- If you're participating in a workshop, the code we’ll be using is available here. Feel free to use this as your experiemntation starting point too, we create an asset!
-
Explore on Your Own:
- Use this environment to write your own scripts or modify existing ones.
-
Smart Contracts and Apps on-chain:
- To start a smart contract or full stack App project, run:
- Note: If you are at this point, I recommend you get AlgoKit locally - codespaces are a premium feture of github and can get deleted!
algokit init
Prefer a local environment? Follow these steps:
- Install Python 3.12 or higher.
- Install AlgoKit.
- Install Docker (for running a local Algorand network).
If you’re taking part in a workshop challenge you can choose to fork and enter codespace or fork and work locally:
-
Live coding follow along:
- Complete the task provided during the workshop.
-
Submit Your Answer:
- Push your changes to your forked GitHub repository.
- Create a Pull Request (PR) to the original repository.
- In your PR, include:
- What your script achieves. (Optional)
- Level Up: Move to a local development environment when you're ready! Check out the AlgoKit Landing Page for a quick setup guide.
- Join the Community:
This repository serves as both a playground for exploration and a platform for structured learning through workshops and challenges. Whether you're a beginner or an experienced developer, I hope you find this environment useful and engaging. Happy coding!