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:
how.to.start.codespace.mp4
*Click the image above to watch a quick 15-second video on how to create your Codespace.*
- Click the green "Code" button at the top right of your forked repo.
- Select "Create codespace on main".
- Once your Codespace is fully loaded, run the following command in the terminal:
sh algorand_setup.sh
-
Start Coding:
- Open the
main.py
file to start coding and interact with the Algorand blockchain (no smart contracts needed). - To start a smart contract/dApp project, run:
algokit init
- Open the
-
Workshop Follow-Along:
- If you're participating in a workshop, the code weβll be using is available here.
-
Explore on Your Own:
- Use this environment to write your own scripts or modify existing ones.
Prefer a local environment? Follow these steps:
- Install Python 3.12 or higher.
- Install AlgoKit.
- Install Docker (for running a local Algorand network).
- Fork & Clone the Repository:
fork.and.clone.example.mp4
*Watch this video to see how to fork and clone a repository.*
- Fork this repository to your GitHub account.
- Clone the repository to your local machine:
cd [DIRECTORY_OF_YOUR_CHOICE] git clone [FORKED_REPO_URL]
-
Open in VSCode:
- Open the repository with your code editor.
-
Bootstrap Your Project:
- Navigate to the
main.py
file. - Run the following command to set up your environment for simple scripts:
sh algorand_setup.sh
- If you are looking into smart contracts and algokit run the following commands:
algokit init algokit project bootstrap
- This installs dependencies and generates a
.env
file if you are using algokit.
- Navigate to the
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, we hope you find this environment useful and engaging. Happy coding!