Skip to content

Latest commit

 

History

History
115 lines (78 loc) · 4.4 KB

README.md

File metadata and controls

115 lines (78 loc) · 4.4 KB

The All-in-One Algorand Codespace

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.

🌟 Quick Start Guide

Fork the Repo:

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.

🚀 Start with Codespaces

This is the fastest way to get up and running!

  1. 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
  1. 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
  2. Workshop Follow-Along:

    • If you're participating in a workshop, the code we’ll be using is available here.
  3. Explore on Your Own:

    • Use this environment to write your own scripts or modify existing ones.

💻 Advanced Setup for Local Development

Prefer a local environment? Follow these steps:

🧰 Prerequisites

  • Install Python 3.12 or higher.
  • Install AlgoKit.
  • Install Docker (for running a local Algorand network).

🔧 Setup Instructions

  1. 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]
  1. Open in VSCode:

    • Open the repository with your code editor.
  2. 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.

🎓 Workshop Challenges

If you’re taking part in a workshop challenge you can choose to fork and enter codespace or fork and work locally:

  1. Live coding follow along:

    • Complete the task provided during the workshop.
  2. 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)

📚 Additional Resources

  • 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:
    • Join Algorand Discord
    • Follow Algodevs on Twitter

🏁 Conclusion

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!